function ApplyNowForm(id) {
var id;
document.getElementById('iframe1').height="268";
document.getElementById('iframe1').width="252";
document.getElementById('iframe1').src="loading.html?rnd="+Math.random();
document.getElementById('iframe1').src="divSignIn.asp?rnd="+Math.random();
showPage();
rSize=parseInt(315/2)
resizing(rSize);
}
function showWindow(e) {
    var x=y=0;
    if (e != '') {
        x = e.screenX;
        y = e.screenY;
    }
		document.getElementById('divDrag').style.left=y+'px';
		document.getElementById('divDrag').style.top=x+'px';
	}
function resizing(minus){
	 var y = (screen.availHeight)/2;
     var x = (screen.availWidth)/2;
	 try
		{
		     x=x-minus;
			document.getElementById('divDrag').style.left=x+250+'px';
			document.getElementById('divDrag').style.top=65+'px';
		}
	  catch(e) {
	  }
}
window.onresize = function(){ 
  resizing();
}
function showPage() {
    /*MakeGrisMain();*/
/*	for (i=0; i<document.all.length; i++) {
    	document.all(i).unselectable = "on";
  	}
*/	document.getElementById('divDrag').style.display='block';
}
var browser=navigator.appName;
var version=navigator.appVersion;
var index=version.lastIndexOf("Safari");

function MakeGrisMain() {
	if (browser=="Microsoft Internet Explorer")  {
		document.getElementById('wrapper').style.filter='progid:DXImageTransform.Microsoft.Alpha( style=0,opacity=58)';
	}
    if (browser=="Netscape") {
	    if (index != - 1) {
			document.getElementById('wrapper').style.opacity =0.58;
			 
		}
		else {
			document.getElementById('wrapper').style.MozOpacity=0.58	;
			 
		}
	}
}
function HidePage() {
	document.getElementById('divDrag').style.display= 'none';
	/*RemoveGrisMain();*/
/*	for (i=0; i<document.all.length; i++) {
    	document.all(i).unselectable = "off";
  	}
*/}
function RemoveGrisMain() {
	if (browser=="Netscape") {
		if (index != - 1){
			document.getElementById('wrapper').style.opacity =1;
			}
		else{
			document.getElementById('wrapper').style.MozOpacity=1	;   //this line remove the background 	
			}  //this line remove the background 	
	}
	
	if (browser=="Microsoft Internet Explorer") {
		document.getElementById('wrapper').style.filter='progid:DXImageTransform.Microsoft.Alpha( style=0,opacity=100)';   //this line remove the background 	
	}
}
