function dynPopUpScrollbars(page) {
	sendWin=window.open('/page/_popup/'+page,'sendWin','width=440,height=535,screenX=50,screenY=50,menubar=0,toolbar=0,scrollbars=yes');
	sendWin.moveTo((screen.width-455)/2,(screen.height-580)/2);
	sendWin.focus();
}

function dynPopUp(page) {
	sendWin=window.open('/page/_popup/'+page,'sendWin','width=435,height=535,screenX=50,screenY=50,menubar=0,toolbar=0,scrollbars=auto');
	sendWin.moveTo((screen.width-435)/2,(screen.height-580)/2);
	sendWin.focus();
}

function contact(nid,cplid,lan) {
	sendWin=window.open('/page/_popup/contact.jsp?nid='+nid+'&cplid='+cplid+'&lan='+lan,'sendWin','width=435,height=505,screenX=50,screenY=50,menubar=0,toolbar=0,scrollbars=auto');
	sendWin.moveTo((screen.width-435)/2,(screen.height-550)/2);
	sendWin.focus();
}

function sendPage(type,id,lan) {
	sendWin=window.open('/page/_popup/sendPage.jsp?type='+type+'&id='+id+'&lan='+lan,'sendWin','width=435,height=505,screenX=50,screenY=50,menubar=0,toolbar=0,scrollbars=auto');
	sendWin.moveTo((screen.width-435)/2,(screen.height-550)/2);
	sendWin.focus();
}

function printPage(type,id,lan) {
	printWin=window.open('/page/_popup/printPage.jsp?type='+type+'&id='+id+'&lan='+lan,'printWin','width=650,height=500,screenX=50,screenY=50,menubar=0,toolbar=0,scrollbars=yes');
	printWin.moveTo((screen.width-650)/2,(screen.height-550)/2);
	printWin.focus();
}

function staticPopUp(html,w,h) {
	printWin=window.open('/page/_static/'+html+'.html','staticWin','width='+w+',height='+h+',screenX=50,screenY=50,menubar=0,toolbar=0,scrollbars=yes');
	printWin.moveTo((screen.width-w)/2,(screen.height-h)/2);
	printWin.focus();
}

function printNow() {
   document.getElementById("printButton").style.visibility = "hidden";
   top.print();
}

function eventRegistration(event_name) {
	eReg=window.open('/page/_popup/'+event_name+'/index.jsp','eReg','width=640,height=600,screenX=50,screenY=50,menubar=0,toolbar=0,scrollbars=auto');
	eReg.moveTo((screen.width-640)/2,(screen.height-600)/2);
	eReg.focus();
}
function regForm(cid, lan) {
	eReg=window.open('/page/_popup/EventRegForm/index.jsp?cid='+cid+'&lan='+lan,'eReg','width=640,height=600,screenX=50,screenY=50,menubar=0,toolbar=0,scrollbars=auto');
	eReg.moveTo((screen.width-640)/2,(screen.height-600)/2);
	eReg.focus();
}
function event_reg(event_name) {
	eReg=window.open('/page/_popup/'+event_name+'/index.jsp','eReg','width=640,height=600,screenX=50,screenY=50,menubar=0,toolbar=0,scrollbars=auto');
	eReg.moveTo((screen.width-640)/2,(screen.height-600)/2);
	eReg.focus();
}

//bookmarks in frameset laden
function checkFrames () {
   if (typeof top.main == "undefined") {
      url = location.href;
      url = url.substring(url.indexOf("/page/"),url.lastIndexOf("/")) + "/index.html";
      top.location.href = url;
   }
}
checkFrames();

