// JavaScript Document
function addToFavorites(){
	var url = 'http://www.happy-webspace.de';
	var description = 'Happy-Webspace.de --- preiswert - schnell - zuverlässig';
	window.external.AddFavorite(url,description);
}

function printPage() { print(document); }
	
function checkSubdomain(){
	popUpWindow('content/checkSubdomain.php?domain='+document.form1.SubDomain.value, 0, 0, 400,300);
}

function domainpreise() {
	popUpWindow('content/domainpreise.php', 0, 0, 600,480);
}

function domainrichtlinien() {
	popUpWindow('content/domainrichtlinien.html', 0, 0, 500, 340);
}

function agb() {
	popUpWindow('AGB-Lesen.html', 0, 0, 640,480);
}
	
	

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  if (popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=1,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top)) {
	  	popUpWin.focus();
  } else {
		errorOpenWindow();
  }
}

function errorOpenWindow(){
	alert('Das öffnen des Fensters wurde verhindert. Deaktivieren Sie bitte Ihren Popup-Blocker oder schalten Sie ihn auf "Mittlere Stufe".\nIn dieser Stufe werden automatische Popups weitestgehend blockiert, manuell geklickte aber zugelassen.');
}