// JavaScript Document
	function selectURL() 
	{
		var firstselect = document.getElementById("select").value;
		var lastinput  = document.getElementById("Search").value;
		var sURL = "";
//		alert(firstselect);
//		alert(lastinput);
		var host = window.location.host;
		if(lastinput && firstselect=="")
		{
			sURL = "http://search.genscript.com/search?btnG=GenScript+Search&sort=date%3AD%3AL%3Ad1&output=xml_no_dtd&oe=UTF-8&ie=UTF-8&client=default_frontend&proxystylesheet=default_frontend&site=default_collection&q="+lastinput;
		}
		else if(lastinput && firstselect!='ORF_Clone' && firstselect !="")
		{
			firstselect = firstselect.replace(/\_/g,'-');
			sURL = "http://"+host+"/"+firstselect+"/keyword--"+lastinput+"/1.html";
//			alert(sURL);
		}
		else if(!lastinput && firstselect!='ORF_Clone')
		{
			sURL = "http://"+host+"/"+firstselect+".html";
//			alert(sURL);
		}
		else if(!lastinput && firstselect=='ORF_Clone')
		{				
			sURL = "http://"+host+"/cgi-bin/products/search_gene.cgi";
//			alert(sURL);
		}
		else
		{
			sURL = "http://"+host+"/cgi-bin/products/search_gene.cgi?op=Search By Keywords&keywords="+lastinput+"&display=yes";
//			alert(sURL);
		}
		
		
		if (sURL != "") 
		{  
			location = sURL;  
		}
	}


