
document.writeln(" <style type=\"text/css\"> ");
document.writeln(" @import url(http://www.google.com/cse/api/branding.css); ");
document.writeln(" </style> ");
document.writeln(" <div class=\"cse-branding-right\" style=\"background-color:#ebf3fb;color:#616161\"> ");
document.writeln("   <div class=\"cse-branding-form\"> ");

document.writeln(" 	<table border=\"0\" cellspacing=\"2\" cellpadding=\"8\"> ");
document.writeln(" 	  <tr> ");
document.writeln(" 	    <td><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</b></td> ");
document.writeln(" 	    <td><img src=\"http://www.google.com/images/poweredby_transparent/poweredby_FFFFFF.gif\" alt=\"Google\" /></td> ");
document.writeln(" 	    <td> ");   
document.writeln(" 		<form action=\"http://www.exechonworld.net/search_results.htm\" id=\"cse-search-box\"> ");
document.writeln(" 		  <div> ");
/*document.writeln("      	    <input type=\"hidden\" name=\"cx\" value=\"partner-pub-4838369552586259:5l8w1p-6qf0\" /> ");*/
/*document.writeln("      	    <input type=\"hidden\" name=\"cx\" value=\"partner-pub-4838369552586259:tr3i7nimle3\" /> ");*/
document.writeln("      	    <input type=\"hidden\" name=\"cx\" value=\"partner-pub-4838369552586259:d7y3hl-w8ub\" /> ");

document.writeln("             	    <input type=\"hidden\" name=\"cof\" value=\"FORID:9\" /> ");
/*document.writeln("        	    <input type=\"hidden\" name=\"ie\" value=\"ISO-8859-1\" /> ");*/
document.writeln("        	    <input type=\"hidden\" name=\"ie\" value=\"utf-8\" /> ");
document.writeln("		    <input type=\"text\" name=\"q\" size=\"80\" /> ");
document.writeln("		    <input type=\"submit\" name=\"sa\" value=\"Õ¾ÄÚËÑË÷\" onclick=\"myfunc('sa')\" /> ");
document.writeln("        	    <input type=\"submit\" name=\"sa2\" value=\"Õ¾ÍâËÑË÷\" onclick=\"myfunc('sa2')\" /> ");
document.writeln("		  </div> ");
document.writeln("		</form> ");
document.writeln(" 	    </td> ");
document.writeln(" 	  </tr> ");
document.writeln(" 	</table> ");

document.writeln("   </div> ");
document.writeln(" </div> ");

function myfunc(inval) 
{
	if (inval == 'sa')
              /*document.getElementById('cx').value = "partner-pub-4838369552586259:5l8w1p-6qf0";*/
	      /*document.getElementById('cx').value = "partner-pub-4838369552586259:tr3i7nimle3";*/
	      document.getElementById('cx').value = "partner-pub-4838369552586259:d7y3hl-w8ub";
        else
              document.getElementById('cx').value = "partner-pub-4838369552586259:z7bb9u-pb2j";
}


/*
<form action="http://www.exechonworld.com/search_results.htm" id="cse-search-box">
  <div>
    <input type="hidden" name="cx" value="partner-pub-4838369552586259:pz2v1c-seev" />
    <input type="hidden" name="cof" value="FORID:9" />
    <input type="hidden" name="ie" value="UTF-8" />
    <input type="text" name="q" size="60" />
    <input type="submit" name="sa" value="Search Site" onclick="myfunc('sa')" />
    <input type="submit" name="sa2" value="Search Internet" onclick="myfunc('sa2')" />    
  </div>
  <script type="text/javascript">
      function myfunc(inval) {
          if (inval == 'sa')
              document.getElementById('cx').value = "partner-pub-4838369552586259:pz2v1c-seev";
          else
              document.getElementById('cx').value = "partner-pub-4838369552586259:z7bb9u-pb2j";
      }
    </script>
</form>
*/



/*
document.writeln("<form class=\"form\" onsubmit=\"locationsearch();return false;\" action=\"\" id=\"serchForm\">");
document.writeln("  <table border=\"0\" cellspacing=\"2\" cellpadding=\"0\" width=\"100%\">");
document.writeln("      <tr>");
document.writeln("          <td><b>KEYWORD SEARCH</b></td>");
document.writeln("      </tr>");
document.writeln("      <tr>");
document.writeln("          <td><input id=\"searchName\" size=\"20\" type=\"text\" NAME=\"searchName\" style=\"border:1px solid #aacbee;\"></input></td>");
document.writeln("      </tr>");
document.writeln("      <tr>");
document.writeln("          <td><input type=\"button\" onclick=\"locationsearch();return false;\" style=\"border:none; vertical-align: middle; margin-bottom:2px; width:90px;\" name=\"submit\" value=\"Search Site\" />");
document.writeln("              <input type=\"image\" onclick=\"googlesearch();return false;\" src=\"/images/google_search3.gif\" style=\"border: solid 1px gray; height: 20px; vertical-align: middle; margin-bottom:2px;\" name=\"submit\" /></td>");
document.writeln("      </tr>");
document.writeln("  </table>");
document.writeln("</form>");


function KindTrim(s)
{
	return s.replace(/(^\s*)|(\s*$)/g,"");
}
// Seart in site
function locationsearch()
{
	var searchCon = document.getElementById('q') ; // "searchName" search value
	var condition = escape(KindTrim(searchCon.value));
	
	var htmlUrl = "/Search.aspx?keyword="+condition ;
	var features = "left=150,top=100,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=700" ;  
						
	if(condition!="")  //search when value is not empty
	{
	  var newWin = window.open(htmlUrl,'newwindow',features);
	  newWin.focus(); 
	}						
}
// Google search
function googlesearch() 
{
  var searchCon = document.getElementById('searchName') ; //search value
  var condition = KindTrim(searchCon.value);
  var link="http://www.google.com/search?q="+condition;
  window.open(link); 
}
*/

