/*得到Html参数,Code By Nicenic.com, IceFire*/
function Request(strName)
{
 var strHref = window.document.location.href;
 var intPos = strHref.indexOf("?");
 var strRight = strHref.substr(intPos + 1);
 var arrTmp = strRight.split("&");
 for(var i = 0; i < arrTmp.length; i++) { 
	 var arrTemp = arrTmp[i].split("=");
	  if(arrTemp[0].toUpperCase() == strName.toUpperCase()) return arrTemp[1]; }
 return "";
}

function showUrl(){
	document.write(window.location.hostname);
}

//修正png
function isIE(){
if (navigator.appName!="Microsoft Internet Explorer") {return false}
return true
}

function correctPNG() 
{
var iexit=eval('document.all.Loadding?1:0'); 
   for(var i=0; i<document.images.length; i++)
   {
	  var img = document.images[i]
	  var LW=img.width
	  var LH=img.height
	  var imgName = img.src.toUpperCase()
	  if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
	  { 
         img.style.filter+="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img.src+", sizingmethod=scale);" 
         img.src="http://box.pc51.com/js/transparent.gif"
         img.width=LW
         img.height=LH
	  }
   }
}
if (isIE()) {window.attachEvent("onload", correctPNG);}