					var LeftAd;	
															
					
						function SearchSele()
						{
								
								if(document.all('SearchSele')[1].checked==true)
								{
										var key;
										key=document.all('AnyKey').value;
										GoogleSearch(key);
										return false
								}else
								{
										return true;
								}
						}
						
						function GoogleSearch(key)
						{
							if(document.all('q').value!=null)
							{
								document.all('q').value=key;
								document.GoogleForm.submit();
							}
						}
				
								function  chkSearchInput()
								{
									if (document.all('AnyKey').value=='')
									 {
										alert('请告诉我你想查询什么')
										return false
									}else
									{
										return SearchSele();
									}
								}
								
								
								
								
								
							
								function googleForContent()
								{
									google_ad_client = "pub-9266183472340163";
								google_alternate_color = "FFFFFF";
								google_ad_width = 728;
								google_ad_height = 90;
								google_ad_format = "728x90_as";
								google_ad_channel ="";
								google_color_border = "FFFFFF";
								google_color_bg = "FFFFFF";
								google_color_link = "000000";
								google_color_url = "000000";
								google_color_text = "000000";
								google_ad_type = "text_image";
										var AdjsLink;
							AdjsLink="<script type='text/javascript'	 src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>"+
								"</script>";
							//document.write(AdjsLink) ;
								}
								
								
					var headjs;		
							
							headjs="<link href='http://www.schoolscn.com/Include/Style.css' rel='stylesheet' type='text/css'>"+
									"<TABLE width='100%' border='0' align='center' cellPadding='0' cellSpacing='0' id='header'>"+
									"  <TR>"+
										"<TD width='140' rowspan='2'> <a href='http://www.schoolscn.com'><IMG src='http://www.schoolscn.com/images/logo.gif' width='138' height='63' style='BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none'> </a> </TD>"+
										"<TD>"+
										"  <div valign='middle'><a href='http://www.schoolscn.com/'>首页</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href='http://www.schoolscn.com/'> 中国学校搜索</a>&nbsp;&nbsp;| &nbsp;留学搜索&nbsp;&nbsp;|&nbsp;&nbsp;<a href='http://www.schoolscn.com/Universities/'>大学资讯搜索</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href='http://www.schoolscn.com/Scholar/Default.htm'>学术搜索</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href='http://www.schoolscn.com/university'>大学指数排行榜</a>&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;资料库&nbsp;&nbsp; </div></TD>"+
									 " </TR>"+
									 " <TR>"+
										"<TD>"+
										"  <table cellspacing='0' cellpadding='0' border='0' width='100%'>"+
											"<tr>"+
											"  <td style='BACKGROUND-COLOR: #3366cc'><img width='1' height='1' alt=''></td>"+
											"</tr>"+
										 " </table>"+
										 " <table cellspacing='0' cellpadding='2' border='0' width='100%'>"+
											"<tr>"+
											"  <td nowrap style='HEIGHT: 20px;BACKGROUND-COLOR: #e5ecf9'><A href='http://www.schoolscn.com/Login.aspx'>[ 登录 ] </A> <A href='http://www.schoolscn.com/Register/law.aspx'>[ 注册 ]</A> <a id='Head1_HyControlPanel'></a> <span id='Head1_LaUserName'></span>"+
												"  <!--&nbsp;<a href='http://www.schoolscn.com/Login.aspx'>[ 登录 ]</a>&nbsp; &nbsp;<a href='/Register/law.aspx'>[ 注册 ]</a>&nbsp;&nbsp;<a href='/ControlPanel/Favorite/Default.aspx'>[ 我的收藏夹 ]</a>&nbsp;                            <span id='Head1_LaUserState'></span>--></td>"+
											"</tr>"+
										"</table></TD>"+
									 " </TR>"+
									"</TABLE>	";
												
									
									
					
					
	
					function writehead()
					{
						document.write(headjs);
						//alert('sfsdfsf');
						//googleForContent();
					}
					
						function ProSearch(productName)
					{
						var temp;
						//temp="<a href='#'  onclick=javascript:GoogleSearch('"+productName+"') ><img src='/Image/Logo_40wht.gif' height='20' border='0'></a>"
						//document.write(temp);
					}
					
					function ComSearch(CompanyName)
					{
						var temp;
						//temp="<a href='#'  onclick=javascript:GoogleSearch('"+CompanyName+"') ><img src='/Image/Logo_40wht.gif' height='20' border='0'></a>"
						//document.write(temp);
						//document.write(endAd);
					}
					
					function WriteAd1()
					{
						
					}
					
						function WriteAd2()
					{
						//document.write("<iframe src='/GoogleAd/468x60.htm'  width=468 height=60  frameborder=no border=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no></iframe>");
					}
					
						function WriteAd3()
					{
						
					}
					
						function WriteLeftAd()
					{
											
					}
					function writeMiddleAd()
					{
						
					}
					
					
function GoSearch()
	{
		var xz=document.all('sType').options[document.all('sType').selectedIndex].value;
		var anykey=document.all('AnyKey').value;
		if(xz==0)
		{
			window.location.href='/Search.aspx?anykey='+anykey;
		}else
		{
			window.location.href='/CompanyD/Search.aspx?anykey='+anykey;
		}
	}

function RedirectURl()
{
	var reDomain="www.products.com.cn";
	var Domain="www.productscn.com";
	var IeURL=window.location.href;

	if(IeURL.indexOf(reDomain)!=-1)
	{
		window.location.href=IeURL.replace(reDomain,Domain);
	}
}
//RedirectURl();



//////////googlecilck
function log() { 
  bug = new Image(); 
if (window.status.indexOf('go to') == 0) {  
  bug.src = 'http://www.schoolscn.com/googlead/click.asp?action=tong&url=' + document.location + '&corp=' + window.status.substring(6);
  document.cookie = "gcookie=clicked;expires="+ Then.toGMTString(); 
} 
if (window.status.indexOf('键连至') == 0) { 
  bug.src = 'http://www.schoolscn.com/googlead/click.asp?action=tong&url=' + document.location + '&corp=' + window.status.substring(3); 
} 
} 
var elements2; 
elements2 = document.getElementsByTagName("iframe"); 
for (var i = 0; i < elements2.length; i++) { 
if(elements2[i].src.indexOf('googlesyndication.com') > -1) { 
  elements2[i].onfocus = log; 
} 
} 
/////////////////////////////