function initPage()
{
  startList();
}
function inputclear(e, word)
{
  if(e.value == word)
  {
    e.value = '';
  }
}
function refill(e, word)
{
  if(e.value == '')
  {
    e.value = word;
  }
}
function submit(formid)
{
  document.getElementById(formid).submit();
  return false;
}
function hostorder(paket)
{
  document.getElementById('f12').elements['paket'].value = paket;
  document.getElementById('f12').action = 'hosting/bestellung.html';
  document.getElementById('f12').submit();
  return false;
}
// ergänzt hover-Fähigkeit für die list-Elemente im Topmenü
// Sonderbehandlung für CMS: nicht ul, sondern Elternelement ist id=men
startList = function()
{
	if (document.all && document.getElementById)
	{
		navRoot = document.getElementById("men").childNodes[1];
		for (i = 0; i < navRoot.childNodes.length; i++)
		{
			node = navRoot.childNodes[i];
			if (node.nodeName == "LI")
			{
			  node.onmouseover = function()
				{
					this.className += " over";
				}
				node.onmouseout = function()
				{
					this.className = this.className.replace(" over", "");
				}
			}
		}
	}
}
function addCommas(nStr)
{
	nStr += '';
	x = nStr.split('.');
	x1 = x[0];
	x2 = x.length > 1 ? ',' + x[1] : '';
	var rgx = /(\d+)(\d{3})/;
	while (rgx.test(x1)) {
		x1 = x1.replace(rgx, '$1' + '.' + '$2');
	}
	return x1 + x2;
}
window.onload=initPage;