function openwin(url,winName,width,height) {
	xposition=0; yposition=0;
	if ((parseInt(navigator.appVersion) >= 4 ))	{
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;
	}
	theproperty= "width=" + width + "," 
	+ "height=" + height + "," 
	+ "location=0," 
	+ "menubar=0,"
	+ "resizable=0,"
	+ "scrollbars=0,"
	+ "status=0," 
	+ "titlebar=0,"
	+ "toolbar=0,"
	+ "hotkeys=0,"
	+ "screenx=" + xposition + "," //仅适用于Netscape
	+ "screeny=" + yposition + "," //仅适用于Netscape
	+ "left=" + xposition + "," //IE
	+ "top=" + yposition; //IE 
	//window.open( url,winName,theproperty );
	newwin=window.open('','',theproperty );
	newwin.location.href =url;
	
	return false;
}	

function openwin4scroll(url,winName,width,height) {
	xposition=0; yposition=0;
	if ((parseInt(navigator.appVersion) >= 4 ))	{
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;
	}
	theproperty= "width=" + width + "," 
	+ "height=" + height + "," 
	+ "location=0," 
	+ "menubar=0,"
	+ "resizable=0,"
	+ "scrollbars=1,"
	+ "status=0," 
	+ "titlebar=0,"
	+ "toolbar=0,"
	+ "hotkeys=0,"
	+ "screenx=" + xposition + "," //仅适用于Netscape
	+ "screeny=" + yposition + "," //仅适用于Netscape
	+ "left=" + xposition + "," //IE
	+ "top=" + yposition; //IE 
	//window.open( url,winName,theproperty );
	newwin=window.open('','',theproperty );
	newwin.location.href =url;
	
	return false;
}	
function openwin100scroll(url,winName,width,height) {
	xposition=0; yposition=0;
	if ((parseInt(navigator.appVersion) >= 4 ))	{
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;
	}
	theproperty= "width=" + width + "," 
	+ "height=" + height + ","  
	+ "center=yes,"
	+ "status=no,"
	+ "help=0,"
	+ "screenx=" + xposition + "," //仅适用于Netscape
	+ "screeny=" + yposition + "," //仅适用于Netscape
	+ "left=" + xposition + "," //IE
	+ "top=" + yposition; //IE 
	//window.open( url,winName,theproperty );
	newwin=window.open('','',theproperty );
	newwin.location.href =url;
	
	return false;
}	

function js_openpage(url) 
{
	showModalDialog(url,"","dialogWidth:13;dialogHeight:20.5;center:yes;status:no;help:no");
	return false;
}
function hetao_openpage(url) 
{
	showModalDialog(url,"","dialogWidth:13;dialogHeight:22.5;center:yes;status:no;help:no");
	return false;
}

var newWindow = null
function WindowOpener(loadpos, width, height)
{	
	xposition=0; yposition=0;
	if ((parseInt(navigator.appVersion) >= 4 ))	{
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;
	}
	//"screenx="+xposition+",screeny="+yposition+",left="+xposition+",top="+yposition
		
	if (! newWindow || newWindow.closed)
	{
  		newWindow = window.open(loadpos,"newWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+width+",height="+height+",screenx="+xposition+",screeny="+yposition+",left="+xposition+",top="+yposition);
	}
	else
	{
		newWindow.focus();
	}
}

function WinOpener_Fairy(loadpos, width, height)
{
	xposition=0; yposition=0;
	if ((parseInt(navigator.appVersion) >= 4 ))	{
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;
	}
	//"screenx="+xposition+",screeny="+yposition+",left="+xposition+",top="+yposition
		
	if (! newWindow || newWindow.closed)
	{
  		newWindow = window.open(loadpos,"newWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="+width+",height="+height+",screenx="+xposition+",screeny="+yposition+",left="+xposition+",top="+yposition);
	}
	else
	{
		newWindow.focus();
	}	
}




