function clearHeadSearch(){

var name = document.getElementById("key").value

	if(name== "Search" ){

		document.getElementById("key").value="";
	}
	}
	
function NeatDialog(sHTML, sTitle, bCancel)
{
window.neatDialog = null;
this.elt = null;
if (document.createElement && document.getElementById)
{
    var dg = document.createElement("div");
    dg.className = "neat-dialog";
    if (sTitle)
      sHTML = '<div class="neat-dialog-title">'+sTitle+
              ((bCancel)?
                '<img src="x.gif" alt="Cancel" class="nd-cancel" />':'')+
                '</div>\n' + sHTML;
    dg.innerHTML = sHTML;

    var dbg = document.createElement("div");
    dbg.id = "nd-bdg";
    dbg.className = "neat-dialog-bg";

    var dgc = document.createElement("div");
    dgc.className = "neat-dialog-cont";
    dgc.appendChild(dbg);
    dgc.appendChild(dg);

    //adjust positioning if body has a margin
    if (document.body.offsetLeft > 0)
      dgc.style.marginLeft = document.body.offsetLeft + "px";

    document.body.appendChild(dgc);
    if (bCancel) document.getElementById("nd-cancel").onclick = function()
    {
      window.neatDialog.close();
    };
    this.elt = dgc;
    window.neatDialog = this;
}
}
NeatDialog.prototype.close = function()
{
if (this.elt)
{
    this.elt.style.display = "none";
    this.elt.parentNode.removeChild(this.elt);
}
window.neatDialog = null;
}
function openDialog()
{

var sHTML = '<table width="590" border="0" style="background-position:top; background-repeat:no-repeat;'+
'background-image:url(http://www.qihan.cn/l-bg.gif);margin:0 auto; "><tr ><td>'+
'<div align="left" style="width:390px; float=:left; PADDING-RIGHT: 3px;PADDING-LEFT: 10px; FONT-WEIGHT:'+
'bold; FONT-SIZE: 18px;PADDING-BOTTOM: 3px;COLOR: #990000;PADDING-TOP: 11px; FONT-FAMILY: arial, tahoma, ""'+
'>Select a Location/Language</div></td><td>'+
'<div align="right" ><img id="lang-img"  onclick="window.neatDialog.close()"'+
'src="http://www.qihan.cn/close_ico.gif" width="24" height="24" onmousemove="document.getElementById(\'lang-img\').src=\'http://www.qihan.cn/close_ico1.gif\'" '+
'onmouseout="document.getElementById(\'lang-img\').src=\'http://www.qihan.cn/close_ico.gif\'"/>&nbsp;&nbsp;&nbsp;</div></td></tr><tr><td colspan="2" align="center">'+
'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+
'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="590" height="310">'+
          '<param name="movie" value="http://www.qihan.cn/language.swf">'+
          '<param name="quality" value="high">'+
          '<embed style="TOP: 0px" align="right"    src="http://www.qihan.cn/language.swf" quality="high"'+
		  'pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"'+
		  'width="590" height="310"></embed></object></td></tr></table>';
    new NeatDialog(sHTML, "", false);

}

function getObj(objName){return(document.getElementById(objName));}
function tag1(id)
{
 for(var i=1;i<=5;i++)
 {
  if(i==id) 
  {
   var url = location.href;
   
   getObj("p1"+i).style.display="block";
   getObj("lmg1"+i).src='../images/c_c_1.jpg';
   getObj("bg1"+i).background='../images/c_c_bg.jpg';
   getObj("bg1"+i).className="red_strong"
   getObj("rimg1"+i).src='../images/c_c_2.jpg';

  
  }
  else
  {
   getObj("p1"+i).style.display="none";
   getObj("lmg1"+i).src='../images/c_c_7.jpg';
   getObj("bg1"+i).background='../images/c_c_9.jpg';
   getObj("rimg1"+i).src='../images/c_c_8.jpg';
   getObj("bg1"+i).className=""
  }
 }
}

/* 获得HTML参数*/
function requestid(){ 
var url = location.href;   
var paraString = url.substr(url.indexOf("?")+4,1);

if (url.indexOf("?")==-1){
	
	tag1(1)}else{
	tag1(paraString);	
		
		}


 } 




