//---------------------------------------------------------------------------------------------------
document.write('<link rel="stylesheet" type="text/css" href="/Box2/css/subModal.css" />');
document.write('<script type="text/javascript" src="/Box2/js/common.js" ></script>');
document.write('<script type="text/javascript" src="/Box2/js/subModal.js"  ></script>');


function openwinpd(id, downid, type) 
{
	url=0; url2=0; winName=0;
	width=0; height=0;
	xposition=0; yposition=0;

	if (type == "softD")
	{
		url = "http://dp1.m165.mtvgg.com/down.asp?id=" + id + "&downid=" + downid;
		url2 = "http://dp1.m165.mtvgg.com/downbox3.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 );


   // var popup = window.open( url,winName,theproperty );

  // var popup = showPopWin('DOWNLOAD',url2, 300, 220, null,true,true);



	if (type == "softD")
	{
		   // var popup = window.open( url,winName,theproperty );

		   ////var popup = showPopWin('DOWNLOAD',url2, 300, 220, null,true,true);
		   //var popup = showPopWin('DOWNLOAD',url2, 400, 340, null,true,true);
		   var popup = showPopWin('DOWNLOAD',url2, 300, 220, null,true,true);


	}

	else
	{
			var popup = window.open( url,winName,theproperty );
	}




    popup.focus();
}





function favlhrepn(){
	var url6=document.URL ;
	var response61=url6.split("://") ;
	var response62=response61[1].split("/") ;
	var lhrep=location.href;
	var lhrepn=lhrep.replace(response62[0],"www.yx8cn.com");
	window.external.AddFavorite(lhrepn,document.title);
}






//---------------------------------------------------------------------------------------------------

