
var results_location = "results.html";


// ---------- end of script properties ----------


function search_form(jse_Form) {
	if (jse_Form.d.value.length > 0) {
		document.cookie = "d=" + escape(jse_Form.d.value);
		window.location = results_location;
	}
}
String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}

	function search_chk()
	{
		if(document.frmSearch.SearchString.value.trim()=='')
			{ alert("Please Enter Search Phrase");
			document.frmSearch.SearchString.focus();
			return false;
			}
		else{
					var str=document.frmSearch.SearchString.value.trim();
					//var filter=/^([\w-]+(?:\.[\w-]+)*)$/i;
					var filter=/^([\w\s-]+(?:\.[\w\s-]+)*)$/i;
					//@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
					if (filter.test(str))
						{
						document.frmSearch.action="/results.html";
						document.frmSearch.Submit();
						}
						else
						{
							alert("Search Phrase contains invalid symbol!! Please check.");
							return false;
						}
			}
	}

document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">')
document.write('<tr>')
document.write('<td>')
document.write('<img src="images/index_04.gif" width="182" height="24" alt=""><img src="images/index_05.gif" width="20" height="24" alt=""><img src="images/index_06.gif" width="8" height="24" alt=""><img src="images/index_07.gif" width="9" height="24" alt=""><a href="news.html"><img src="images/index_08.gif" width="36" height="24" border="0"></a><img src="images/index_09.gif" width="10" height="24" alt=""><a href="sitemap.html"><img src="images/index_10.gif" width="47" height="24" border="0"></a><a href="index.html"><img src="images/home.gif" width="70" height="24" alt="" border="0"></a><img src="images/index_12.gif" width="55" height="24" alt=""></td>')
document.write('<td>');
document.write('<div align="center">');
document.write('<form method="POST" name="jse_Form" action="" onsubmit="search_form(jse_Form);return false"><table border="0" cellpadding="0" cellspacing="0" width="100%">');
document.write('<tr valign="top">');
//document.write('<form name="jse_Form" method="POST" onSubmit="javascript:return search_chk();">')
//document.write('<input type="hidden" name="Action" value="Go">')
document.write('<td >');
document.write('<input type="hidden" name="Action" value="Go">');
document.write('<img border="0" src="images/spacer.gif" width="10" height="1"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td>');
document.write('<input type="text" onsubmit="search_form(jse_Form);return false" name="d" size="18" style="font-family: Verdana; font-size: 8pt; border: 1px solid #C0C0C0">&nbsp;');
document.write('<input type="image" src="images/go.gif" width="19" height="19" align="absmiddle" border="0" onclick="search_form(jse_Form)"></td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');
document.write('</td>');
document.write('</tr>');
document.write('</table></form>');






