    var url = window.location.href; //Fetch the url
    var nohttp = url.split('//')[1]; //Fine Tuning - I
    var hostPort = nohttp.split('/')[0] // //Fine Tuning - II
    var verify =  "http://" + hostPort + "/PreLog/PreLTemplate.aspx"; // Url

function rhs_login()
{
	document.write("<table cellpadding='2' cellspacing='0' border='0' bgcolor='#daf1fd' style='border:1px solid #d3d3d3' width='199'>")
	document.write("<tr bgcolor='#9bd8f9'>")
		document.write("<td width='10'></td>")
		document.write("<td width='145'><h2>Member's Login</h2></td>")
		document.write("<td width='7'></td>")
		document.write("<td width='30'></td>")
		document.write("<td width='7'></td>")
	document.write("</tr>")
	document.write("<tr>")
		document.write("<td colspan='5' height='5'></td>")
	document.write("</tr>")
	document.write("<tr>")
		document.write("<td></td>")
		document.write("<td>")
		document.write("<select name='login' class='input'>")
		document.write("<option selected='selected'>Customer</option>")
		document.write("<option>Intermediaries</option>")
		document.write("<option>Service Providers</option>")
		document.write("</select>")
		document.write("</td>")
		document.write("<td></td>")
		document.write("<td><a href='" + verify +"'><img src='images/go_btn.gif' alt=''></a></td>")
		document.write("<td></td>")
	document.write("</tr>")
	document.write("<tr>")
		document.write("<td colspan='5' height='5'></td>")
	document.write("</tr>")
	document.write("<tr>")
		document.write("<td></td>")
		document.write("<td colspan='4' align='left'><a href='login.aspx' class='bluelink'><b>eTravel</b></a>&nbsp;&nbsp;<a href='login.aspx' class='bluelink'><b>Corporate Travel</b></a><br><a href='register.aspx' class='bluelink'>New user? Register here</a></td>")
	document.write("</tr>")
	document.write("<tr>")
		document.write("<td colspan='5' height='5'></td>")
	document.write("</tr>")
	document.write("</table>")
}


/*function rhs_trac_services()
{
	document.write("<table cellpadding='2' cellspacing='0' border='0' width='215' style='background:url(images/rhs-dialogbox-bg.gif) repeat-x bottom #fafafa; text-align:left'>")
	document.write("<tr>")
		document.write("<td height='8' colspan='6'></td>")
	document.write("</tr>")
	//document.write("<tr>")
		//document.write("<td width='10' align='right' valign='top' style='padding-left:10px;'><img src='images/red-bullet.gif' vspace='5'></td>")
		//document.write("<td colspan='4' class='boldbluefont' valign='top'>Track your service request status</td>")
		//document.write("<td width='37'></td>")
	//document.write("<tr>")
		//document.write("<td></td>")
		//document.write("<td>")
		
		document.write("<input id='num' class='input' type='text' name='textfield' value='Number' />")
//		document.write("<select name='login' class='input'>")
//		document.write("<option selected='selected'>Request Complainment</option>")
//		document.write("</select>")
		document.write("</td>")
		document.write("<td></td>")
//		document.write("<td><a href='" + verify +"'><img src='images/go_btn.gif' alt=''></a></td>")
		document.write("<td></td>")
 		document.write("</tr>")
		document.write("<tr>")
		document.write("<td></td>")
		document.write("<td>")
		document.write("<select name='login' class='input'>")
		document.write("<option selected='selected'>Request type</option>")
		document.write("<option >Policy No/Cover Note No/Kit No</option>")
		document.write("<option >Request Number</option>")
		document.write("</select>")
		document.write("</td>")
		document.write("<td></td>")
		document.write("<td><a href='" + verify +"'><img src='images/go_btn.gif' alt=''></a></td>")
		document.write("<td></td>")
 		document.write("</tr>")
		document.write("<tr>")
		document.write("<td height='8' colspan='6'></td>")
	document.write("</tr>")
	document.write("</table>")
}*/

function rhs_locate()
{
	document.write("<table cellpadding='0' cellspacing='0' border='0' width='199' style='background:url(images/rhs-dialogbox-bg.gif) repeat-x bottom #fafafa; text-align:left'>")
	document.write("<tr>")
		document.write("<td height='8' colspan='4'></td>")
	document.write("</tr>")
	document.write("<tr>")
		document.write("<td></td>")
		document.write("<td colspan='2' class='boldbluefont'><span class='redbullet'>Locate us</span></td>")
		document.write("<td></td>")
	document.write("</tr>")
	document.write("<tr>")
		document.write("<td height='8' colspan='4'></td>")
	document.write("</tr>")
	/*document.write("<tr>")
		document.write("<td width='7'></td>")
		document.write("<td width='145'>")
		document.write("<select name='regional' class='input'>")
		document.write("<option>Reginal Office</option>")
		document.write("</select></td>")
		document.write("<td width='7'></td>")
		document.write("<td width='37'></td>")
	document.write("</tr>")
	document.write("<tr>")
		document.write("<td height='8' colspan='3'></td>")
	document.write("</tr>")*/
	document.write("<tr>")
		document.write("<td width='7'></td>")
		document.write("<td width='145'>")
		document.write("<select name='regional' class='input'>")
		document.write("<option>Select City</option>")
		document.write("</select></td>")
		document.write("<td width='7'></td>")
		document.write("<td width='37'><a href='#'><img src='images/go_btn.gif' alt=''></a></td>")
	document.write("</tr>")
	document.write("<tr>")
		document.write("<td height='8' colspan='4'></td>")
	document.write("</tr>")
	document.write("</table>")
}

/*function rhs_helpline()
{
	document.write("<table cellpadding='0' cellspacing='0' border='0' width='199' style='background:url(images/rhs-dialogbox-bg.gif) repeat-x bottom #fafafa; text-align:left'>")
	document.write("<tr>")
		document.write("<td height='8' colspan='6'></td>")
	document.write("</tr>")
	document.write("<tr>")
		document.write("<td width='10'></td>")
		document.write("<td colspan='4' class='boldbluefont'><span class='redbullet'>Want us to call you?</span></td>")
		document.write("<td><a href='#' onclick=window.open('popup_add.aspx','name','width=380,height=320,toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no')><img src='images/go_btn.gif' alt=''></a></td>")
	document.write("</tr>")
	document.write("<tr>")
		document.write("<td height='8' colspan='6'></td>")
	document.write("</tr>")
	document.write("</table>")
}*/
/*function rhs_compliment()
{
	document.write("<table cellpadding='0' cellspacing='0' border='0' width='215' style='background:url(images/rhs-dialogbox-bg.gif) repeat-x bottom #fafafa; text-align:left'>")
	document.write("<tr>")
		document.write("<td height='8' colspan='6'></td>")
	document.write("</tr>")
	document.write("<tr>")
		document.write("<td width='10'></td>")
		document.write("<td colspan='4' class='boldbluefont'><span class='redbullet'>Compliments &amp; Feedback</span></td>")
		document.write("<td width='37'></td>")
	document.write("</tr>")
	document.write("<tr>")
		document.write("<td height='8' colspan='6' class='txt'> Have your say - tell us how our products and services are. <b>We look forward to your feedback and suggestions!</b> <a href='Compliment.aspx'>Click here</a> </td>")
	document.write("</tr>")
		document.write("<tr>")
		document.write("<td height='8' colspan='6'></td>")
	document.write("</tr>")
	document.write("</table>")
}*/

//function rhs_redressal()
//{
	//document.write("<table cellpadding='0' cellspacing='0' border='0' width='215' style='background:url(images/rhs-dialogbox-bg.gif) repeat-x bottom #fafafa; text-align:left'>")
	//document.write("<tr>")
		//document.write("<td height='8' colspan='6'></td>")
	//document.write("</tr>")
	//document.write("<tr>")
		//document.write("<td width='10'></td>")
		//document.write("<td colspan='4' class='boldbluefont'><span class='redbullet'>Grievance Redressal:</span></td>")
		//document.write("<td width='37'></td>")
	//document.write("</tr>")
	//document.write("<tr>")
		//document.write("<td height='8' colspan='6' class='txt'>Dissatisfied with our resolution? <a href='Grievance.aspx'>click here</a> for further assistance.</td>")
	//document.write("</tr>")
		//document.write("<tr>")
		//document.write("<td height='8' colspan='6'></td>")
	//document.write("</tr>")
	//document.write("</table>")
//}

/*function rhs_downloads()
{
	document.write("<table cellpadding='0' cellspacing='0' border='0' width='199' style='background:url(images/rhs-dialogbox-bg.gif) repeat-x bottom #fafafa; text-align:left'>")
	document.write("<tr>")
		document.write("<td height='8' colspan='4'></td>")
	document.write("</tr>")
	document.write("<tr>")
		document.write("<td width='10'></td>")
		document.write("<td width='145' class='boldbluefont'><span class='redbullet'>Downloads</span></td>")
		document.write("<td width='7'></td>")
		document.write("<td width='37'></td>")
	document.write("</tr>")
	document.write("<tr>")
		document.write("<td height='8' colspan='4'></td>")
	document.write("</tr>")
	document.write("<form name='downloads'><tr>")
		document.write("<td></td>")
		document.write("<td><select name='downloads' class='input'><option selected='selected'>Select</option><option value='../downloads-brochure.aspx'>Brochures</option><option value='../downloads-forms.aspx'>Forms</option></select></td>")
		document.write("<td></td>")
		document.write("<td><a href='#' onClick='brochures()'><img src='images/go_btn.gif' alt=''></a></td>")
	document.write("</tr></form>")
	document.write("<tr>")
		document.write("<td height='8' colspan='4'></td>")
	document.write("</tr>")
	document.write("</table>")
	//document.write("<table cellpadding='0' cellspacing='0' border='0'>")
		//document.write("<tr><td>&nbsp;</td></tr>")
		//document.write("<tr>")
			//document.write("<td><img src='../images/ISO-9001-smbanner.gif' alt=''></td>")
		//document.write("</tr>")
	//document.write("</table>")
}*/

function rhs_downloads()
{
	document.write("<table cellpadding='0' cellspacing='0' border='0' width='199' style='background:url(images/rhs-dialogbox-bg.gif) repeat-x bottom #fafafa; text-align:left'>")
	//document.write("<tr>")
		//document.write("<td height='8' colspan='4'></td>")
	//document.write("</tr>")
	//document.write("<tr>")
	//	document.write("<td></td>")
		//document.write("<td colspan='3' class='boldbluefont'><span class='redbullet'>Track your Service Request</span></td>")
	//document.write("</tr>")
	//document.write("<tr>")
		//document.write("<td height='8' colspan='4'></td>")
	//document.write("</tr>")
	//document.write("<tr>")
		//ocument.write("<td width='7'></td>")
		//document.write("<td width='145'><input type='text' value='Service Request Number' class='input'></td>")
		//document.write("<td width='7'></td>")
		//document.write("<td width='37'><a href='#'><img src='images/go_btn.gif' alt=''></a></td>")
	//document.write("</tr>")
	//document.write("<tr>")
		//document.write("<td height='8' colspan='4'></td>")
	//document.write("</tr>")
	//document.write("<tr>")
	//document.write("<td height='21' colspan='4' bgcolor='#FFFFFF'></td>")
	//document.write("</tr>")
	document.write("<tr>")
	document.write("<td height='8' colspan='4'></td>")
	document.write("</tr>")
	document.write("<tr>")
	document.write("<td colspan='4' height='8' style='padding-left:7px'><a href='http://www.reliancegeneral.co.in/PreLog/claims/about-claims.aspx'><img src='images/register_claims_tab.gif' alt='' border='0' title=''></a></td>")
	document.write("</tr>")
	document.write("<tr>")
	document.write("<td height='8' colspan='4'></td>")
	document.write("</tr>")
	document.write("</table>")
}

function brochures()
{
	box = document.downloads.downloads;
	forms = box.options[box.selectedIndex].value;
	if (forms) location.href = forms;
}

