login = function logWin()
{
	this.pageName;
	this.pageWidth="";
	this.pageHeight="";
	this.load = function(){
		if (this.pageWidth=="")
		{
			this.pageWidth=400;
		};
		if (this.pageHeight=="")
		{
			this.pageHeight=200;
		}
		if (document.all)
		{
			this.win=window.open(this.pageName,"Login","alwaysRaised,directories=0,titlebar=no,toolbar=no,menubar=no,resizable=no,location=no,scrollbars=no,status=no,height="+this.pageHeight+",width="+this.pageWidth+",top="+((screen.height-this.pageHeight)/2)+",left="+((screen.width-this.pageWidth)/2));
		}else{
			this.win=window.open(this.pageName,"Login","alwaysRaised,directories=0,titlebar=false,toolbar=false,menubar=false,resizable=false,locationbar=false,scrollbars=false,statusbar=false,height="+this.pageHeight+",width="+this.pageWidth+",top="+((screen.height-this.pageHeight)/2)+",left="+((screen.width-this.pageWidth)/2));
		}
	}

	this.release = function(){
		this.load = null;
	}

	this.checkWin=function(){
		if(this.win){
			window.opener=null;
			window.close();
		}else{
			window.location=this.pageName;
			window.resizeTo(this.pageWidth+30,this.pageHeight+170);
			window.moveTo((screen.width-(this.pageWidth+30))/2,(screen.height-(this.pageHeight+170))/2)
		}
	}
}