// JavaScript Document

document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr>');
document.write('<td colspan="3"><img src="webimages/spacer.gif" width="1" height="8" /></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="166" height="83" valign="top"><div id="rcomlogo"><a href="http://www.rcom.co.in/Rcom/personal/home/index.html"><img src="webimages/logo_rcom.gif" alt="Reliance Communications" width="160" height="79" border="0"/></a></div></td>');
document.write('<td width="397" valign="bottom"><table width="350" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr>');
document.write('<td width="20%" height="30"><img src="webimages/spacer.gif" width="80" height="10" /></td>');
document.write('<td width="25%" valign="top" class="Grey15boldMainlink" align="center"><a href="http://www.rcom.co.in/Rcom/personal/home/index.html" class="Grey15boldMainlink">Personal</a></td>');
document.write('<td width="25%" valign="top" class="Blue15boldManinlink" align="center">Business</td>');
document.write('<td width="25%" valign="top" class="Grey15boldMainlink" align="center"><a href="http://www.rcom.co.in/Rcom/aboutus/overview/overview_reliancegroup.html">About Us </td>');
document.write('</tr>');
document.write('</table></td>');
document.write('<td width="750" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr>');
document.write('<td><img src="../webimages/spacer.gif" width="10" height="5" /></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td><form name="frmsanjay"><table width="100" border="0" align="right" cellpadding="0" cellspacing="0" style="border:1px solid #9A9CA1">');
document.write('<tr>');
document.write('<td width="84%"><input name="textfield" type="text" class="search" onKeyPress="return checkEnter(event)" onfocus="doBlank()" value="Search..." />');
document.write('</td>');
document.write('<td width="16%" bgcolor="9A9CA1"><a href="#" onClick="sub_func();"><img src="webimages/search_btn.gif" alt="Search" width="26" height="24" border="0" /></a></td>');
document.write('</tr>');
document.write('</table></form></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td height="27">&nbsp;</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td>');
/*document.write('<tr>');
document.write('<td width="52%" class="topSmallmenu"  align="right">Questions? <strong>Call 1800-3000-8383</strong>&nbsp;&nbsp;|</td>');
document.write('<td width="18%" class="topSmallmenu"><div align="right"><a href="Business_ContactUs.html" class="topSmallmenu" id="con">Contact Us</a> </div></td>');
document.write('<td width="30%" class="topSmallmenu"><div align="right">&nbsp;|<a href="/Rcom/aboutus/ir/ir_financials.html" class="topSmallmenu" id="ir">Investor Relations</a> </div></td>');
document.write('</tr>');
*/
document.write('<ul class="topSmallmenu">');
document.write('<li>Questions? <strong> write to us at rcom.bizsolutions@relianceada.com</strong></li>&nbsp;');
document.write('&nbsp;&nbsp;|<li><a href="http://www.rcom.co.in/Rcom/business/HTML/Business_ContactUs.html" class="topSmallmenu" id="con">Contact Us</a> </li>');
document.write('&nbsp;&nbsp;|<li><a href="http://www.rcom.co.in/Rcom/aboutus/ir/ir_financials.html" class="topSmallmenu" id="ir">Investor Relations</a></li>');
document.write('</ul>');
document.write('</td>');
document.write('</tr>');
document.write('</table></td>');
document.write('</tr>');
document.write('</table>');


function sub_func()
{
	var searchname=document.frmsanjay.textfield.value;
	if(searchname=="")
	{
		document.frmsanjay.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.frmsanjay.textfield.value;
document.frmsanjay.action="search.jsp?textval="+searchname;
document.frmsanjay.method="post";
document.frmsanjay.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.frmsanjay.textfield.value = "";
}

function sub_func()
{
var searchname=document.frmsanjay.textfield.value;
document.frmsanjay.action="/rcom/jsp/search.jsp?q="+searchname;
document.frmsanjay.method="post";
document.frmsanjay.submit();

}
