// schunck.de: Common Javascripts



function imagePopUp(name, width, height, category) {
	url = "../images/content/" + category + "/" + name + ".jpg";
	winl = (screen.width - width) / 2;
	wint = (screen.height - height) / 2;
    eval("SchnunckPopup = window.open(url, 'PopupWindow', 'scrollbars=yes,toolbar=no,location=no,top='+wint+',left='+winl+'directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,width="+ width +",height="+ height +"');");
    SchnunckPopup.focus();
}



function pagePopUp(file, width, height) {
	url = file;
	winl = (screen.width - width) / 2;
	wint = (screen.height - height) / 2;
    eval("SchnunckPopup = window.open(url, 'PopupWindow', 'scrollbars=no,toolbar=no,location=no,top='+wint+',left='+winl+'directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,width="+ width +",height="+ height +"');");
    SchnunckPopup.focus();
}




function displayStatus(statustext) {
  status=statustext;
}
