

function openwinpd(id, downid, type) 
{
	url=0; winName=0;
	width=0; height=0;
	xposition=0; yposition=0;

	if (type == "softD")
	{
		url = "http://dp1.m165.yx8cn.com/down.asp?id=" + id + "&downid=" + downid;
		winName = "yx8cncom";
		width = 300;
		height = 300;
	}
	else if (type == "softDhelp")
	{
		url = "/Show/showhelp.html";
		winName = "softDhelp";
		width = 380;
		height = 300;
	}
	else if (type == "softErrRep")
	{
		url = "/error.asp?id=" + id + "&sortid=" + downid;
		winName = "softErrRep";
		width = 574;
		height = 394;
	}
	else
	{
		url = "/Showerr.asp";
		winName = "Showerr";
		width = 300;
		height = 300;
	}

	if ((parseInt(navigator.appVersion) >= 4 ))
	{

		xposition = (window.screenLeft) + ((document.body.clientWidth-width)/2);
		if ((xposition + width) > screen.width)
		{
		  xposition = screen.width - width;
		}
		yposition = (window.screenTop) + ((document.body.clientHeight-height)/2);
		if ((yposition + height) > screen.height)
		{
		  yposition = screen.height - height;
		}
	}
theproperty= "width=" + width + "," 
+ "height=" + height + "," 
+ "location=0," 
+ "menubar=0,"
+ "resizable=1,"
+ "scrollbars=0,"
+ "status=0," 
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //仅适用于Netscape
+ "screeny=" + yposition + "," //仅适用于Netscape
+ "left=" + xposition + "," //IE
+ "top=" + yposition; //IE
    var popup = window.open( url,winName,theproperty );
    popup.focus();
}
function favlhrepn(){
	var lhrep=location.href;
	var lhrepn=lhrep.replace(response62[0],"www.yx8cn.com");
	window.external.AddFavorite(lhrepn,document.title);
}
