// JavaScript Document




	function sub_func()
{
	var searchname=document.frm.textfield.value;
	if(searchname=="")
	{
		document.frm.textfield.value="";
		alert("please enter the search keyword !"); 
		return false;
	}
	else if(searchname=="--------- Search ---------")
	{
		alert("please enter the search keyword !");
		return false;
	}
	else
	{
		search_func();
		return true
	}
}


function search_func()
{ 
var searchname=document.frm.textfield.value;
document.frm.action="search.jsp?textval="+searchname;
document.frm.method="post";
document.frm.submit();
return true;
}


function checkEnter(e)
{ 
	var characterCode; 
	if(e && e.which)
	{ 																					
		e = e;
		characterCode = e.which; 
	}
	else
	{
		e = event;
		characterCode = e.keyCode;
	}

	if(characterCode == 13)
	{ 
		return sub_func();
	}
}

function doBlank()
{
	document.frm.textfield.value = "";
}

function sub_func()
{
var searchname=document.frm.textfield.value;
document.frm.action="search.jsp?q="+searchname;
document.frm.method="post";
document.frm.submit();

}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr>');
document.write('<td width="571" rowspan="3" align="left" valign="top" style="padding-top:10px"><a href="index.html"><img src="images/R-Logo.jpg" width="167" height="37" border="0"/></a></td>');
document.write('<td colspan="3" align="right" valign="top" height="36" class="Rel" style="padding-top:13px">Reliance Health</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td colspan="3" align="right" id="spcr"></td>');
document.write('</tr>');
      
document.write('<tr>');
document.write('<form name="frm">');

document.write('<td width="185" align="left">');
document.write('<table width="185" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr>');
document.write('<td id="serch-box"><input name="textfield" type="text"  id="textboxSER2" onKeyPress="return checkEnter(event)" onfocus="doBlank()" value="Search"/></td>');
document.write('<td id="link-go">');
document.write('<a href="#" onClick="sub_func()"><img src="images/go.jpg" width="22" height="18" border="0"/></a>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</td>');


document.write('<td width="14">&nbsp;</td>');
document.write('<td width="174" align="right"><div><script src="http://www.relianceadagroup.com/ada/scripts/groups.js" type="text/javascript"></script></div>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');

