// JavaScript Document
//Linking Options
function go_option(z)
	 {
	   
	   var s_query = document.getElementById('s_query').value;
	  
	  //alert(s_query);
	  
	   if(z==11)
	   {
	   	if(s_query)
		{
			window.location="./default_g.html?t="+s_query;
		}
		else
		{
			window.location="./default_g.html";
		}
	   }
	   
	   else if(z==12)
	   {
	   	if(s_query)
		{
			window.location="./Yahoo/default.html?t="+s_query;
		}
		else
		{
			window.location="./Yahoo/default.html";
		}
	   }
	   
	   else if(z==0)
	   {
	   		window.location="default.html";
		
	   }
	   
	   
	   else if(z==13)
	   {
	   	if(s_query)
		{
			window.location="default.html?t="+s_query;
		}
		else
		{
			window.location="default.html";
		}
	   }
	   
	   else if(z==2)
	   {
	   	if(s_query)
		{
			window.location="./Bing/Images/default.html?t="+s_query;
		}
		else
		{
			window.location="./Bing/Images/default.html";
		}
	   }
	   else if(z==3)
	   {
	   	if(s_query)
		{
			window.location="./Bing/Videos/default.html?t="+s_query;
		}
		else
		{
			window.location="./Bing/Videos/default.html";
		}
	   }
       else if(z==4)
	   {
	   	if(s_query)
		{
			window.location="./Blog/default.html?t="+s_query;
		}
		else
		{
			window.location="./Blog/default.html";
		}
	   }
       else if(z==5)
	   {
	   	if(s_query)
		{
			window.location="./Bing/News/default.html?t="+s_query;
		}
		else
		{
			window.location="./Bing/News/default.html";
		}
	   }
        else if(z==6)
	   {
	   	if(s_query)
		{
			window.location="Yahoo/Products/default.html?t="+s_query;
		}
		else 
		{
			window.location="Yahoo/Products/default.html";
		}
	   }
	    else if(z==7)
	   {
	   	if(s_query)
		{
			window.location="./Yahoo/Answers/default.html?t="+s_query;
		}
		else 
		{
			window.location="./Yahoo/Answers/default.html";
		}
	   }
	
		 
	 
	 }

