//'COMMON.js - (C) 2005 - 2006 KinderSoft
//'v.1.1.r.26.04.24

function log(){	document.forms[0].submit();}

function fsubmit(){	document.forms[0].submit();}

function shownews(n){
	u = "newshow.asp?n="+ n
	sn = window.open(u,'wnews','location=0,resizable=0,scrollbars=auto,toolbar=0,menubar=0,width=500,height=480,left=20,top=20;');
	sn.focus();
}

function showevents(n){
	u = "eventshow.asp?n="+ n
	sn = window.open(u,'wevents','location=0,resizable=0,scrollbars=auto,toolbar=0,menubar=0,width=500,height=480,left=20,top=20;');
	sn.focus();
}

function _CloseOnEsc() {
	if (event.keyCode == 27) window.close();
}

function PopUpX(u,x,y,l,t){
	var wPopUpX = window.open(u,'wPopUpX','location=0,resizable=0,scrollbars=1,toolbar=0,menubar=0,width='+x+',height='+y+',left='+l+',top='+'t;');
	wPopUpX.focus();
}

function PopUpXCenter(u,x,y,w){
	var a_int_windowWidth=x;
	var a_int_windowHeight=y;
	var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
	var int_windowTop = (screen.height - a_int_windowHeight) / 2;
	if (arguments.length<4) w = 'wPopUpXCenter';
	var wPopUpXCenter = window.open(u,w,'location=0,resizable=0,status=0,scrollbars=0,toolbar=0,menubar=0,width='+a_int_windowWidth+',height='+a_int_windowHeight+',left='+int_windowLeft+',top='+int_windowTop+';');
	wPopUpXCenter.focus();
}

function PopUpXCenterBar(u,x,y,w){
	var a_int_windowWidth=x;
	var a_int_windowHeight=y;
	var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
	var int_windowTop = (screen.height - a_int_windowHeight) / 2;
	if (arguments.length<4) w = 'wPopUpXCenterBar';
	var wPopUpXCenterBar = window.open(u,w,'location=0,resizable=0,status=0,scrollbars=1,toolbar=0,menubar=0,width='+a_int_windowWidth+',height='+a_int_windowHeight+',left='+int_windowLeft+',top='+int_windowTop+';');
	wPopUpXCenterBar.focus();
}

