function openWind(tle,page,w,h,l,t,res,sc,tlb){
	if(myWin!=null){
		myWin.close();
	  	if(myWin.close==true)
			myWin = null;
		else{
			myWin = window.open(page,tle,"width="+w+",height="+h+",top="+t+",left="+l+",resizable="+res+",scrollbars="+sc+"");
			
		}
	}else{
		myWin = window.open(page,tle,"width="+w+",height="+h+",top="+t+",left="+l+",resizable="+res+",scrollbars="+sc+"");
		
	}	
}
function openWin2(tle,page,w,h,l,t,res,sc,tlb){
	if(myWin2!=null){
		myWin2.close();
	  	if(myWin2.close==true)
			myWin2 = null;
		else{
			myWin2 = window.open(page,tle,"width="+w+",height="+h+",top="+t+",left="+l+",resizable="+res+",scrollbars="+sc+"");
			
		}
	}else{
		myWin2 = window.open(page,tle,"width="+w+",height="+h+",top="+t+",left="+l+",resizable="+res+",scrollbars="+sc+"");
		
	}	
}

function generateError() {
	window.location.href = "/error/kunsept/errors.php?err=404";
}

if ( screen.width >= 1360 )
	 leftMargin = 295;
else if ( screen.width == 1280 )
	 leftMargin = 252;
else if ( screen.width == 1152 )
	 leftMargin = 189;
else if ( screen.width == 1024 )
	 leftMargin = 125;
else if ( screen.width == 800 )
	leftMargin = 13;


