﻿function SU_proceed()
{
	document.fm.submit();
}

function popUpWindow(nlangID, URLStr, width, height)
{
var popUpWin=0;

var l=(screen.width-width)/2;
var t=(screen.height-height)/2;

if(popUpWin)
	if(!popUpWin.closed) 
			popUpWin.close();
URLStr = URLStr + "?nlangID="+nlangID;		
popUpWin = open( URLStr, 'popUpWin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+l+',top='+t+',screenX='+l+',screenY='+t+'');
}

function sAlert(){
	var shield = document.createElement("DIV");
	shield.id = "shield";
	shield.style.position = "absolute";
	shield.style.left = "0px";
	shield.style.top = "0px";
	shield.style.width = "100%";
	shield.style.height = ((document.documentElement.clientHeight>document.documentElement.scrollHeight)?document.documentElement.clientHeight:document.documentElement.scrollHeight)+"px";
	shield.style.background = "#000";
	shield.style.textAlign = "center";
	shield.style.zIndex = "888";
	shield.style.filter = "alpha(opacity=0)";
	shield.style.opacity = 0;
	
	document.getElementById("alertFram").style.cssText = "position:absolute;width:503px;height:250px;text-align:center;z-index:10001;border: 1px solid #959595;top:"+(+135+document.documentElement.scrollTop)+"px"+";left:50%;margin-left: -250px;background-color: #FFFFFF;" ;
//	document.body.appendChild(shield);
	this.setOpacity = function(obj,opacity){
		if(opacity>=1)opacity=opacity/100;
		try{
			obj.style.opacity=opacity; 									
		}catch(e){alert(opacity)}
		try{ 
			if(obj.filters.length>0&&obj.filters("alpha")){			
				obj.filters("alpha").opacity=opacity*100;				
			}else{
				obj.style.filter="alpha(opacity=\""+(opacity*100)+"\")";
			}
		}catch(e){}
	}
	var c = 0;
	this.doAlpha = function(){
		if (++c > 20){clearInterval(ad);return 0;}
		setOpacity(shield,c);
	}
	var ad = setInterval("doAlpha()",1);
	this.doClear = function(){
		document.getElementById("alertFram").style.display = "none";
	//	document.body.removeChild(shield);
		
}
}	

function sAlert2(){
	var shield2 = document.createElement("DIV");
	shield2.id = "shield2";
	shield2.style.position = "absolute";
	shield2.style.left = "0px";
	shield2.style.top = "0px";
	shield2.style.width = "100%";
	shield2.style.height = ((document.documentElement.clientHeight>document.documentElement.scrollHeight)?document.documentElement.clientHeight:document.documentElement.scrollHeight)+"px";
	shield2.style.background = "#000";
	shield2.style.textAlign = "center";
	shield2.style.zIndex = "10000";
	shield2.style.filter = "alpha(opacity=0)";
	shield2.style.opacity = 0;
	
	document.getElementById("alertFram2").style.cssText = "position:absolute;width:503px;height:420px;text-align:center;z-index:10001;border: 1px solid #959595;top:"+(+135+document.documentElement.scrollTop)+"px"+";left:50%;margin-left: -250px;background-color: #FFFFFF;" ;
	//document.body.appendChild(shield2);
	
	this.setOpacity2 = function(obj,opacity){
		if(opacity>=1)opacity=opacity/100;
		try{
			obj.style.opacity=opacity; 									
		}catch(e){alert(opacity)}
		try{ 
			if(obj.filters.length>0&&obj.filters("alpha")){			
				obj.filters("alpha").opacity=opacity*100;				
			}else{
				obj.style.filter="alpha(opacity=\""+(opacity*100)+"\")";
			}
		}catch(e){}
	}
	var c = 0;
	this.doAlpha2 = function(){
		if (++c > 20){clearInterval(ad2);return 0;}
		setOpacity2(shield2,c);
	}
	var ad2 = setInterval("doAlpha2()",1);
	

	this.doClear2 = function(){
		document.getElementById("alertFram2").style.display = "none";
	//	document.body.removeChild(shield2);
		
}
}

function doClear2(){
		document.getElementById("alertFram2").style.display = "none";
	//	document.body.removeChild(shield2);		
		}


//function $(idName){
//	return document.getElementById(idName);
//}
//function $F(idName){
//	return document.getElementById(idName).value;
//}


    function bugonclick(){		
		    sAlert();
		}
		function bugonclick2(){		
		    sAlert2();
		}
		
		function AlertClose2(){		
		    doClear2();
		}
		
		function AlertClose(){
		    doClear();		
		}	


