//alert(window.location);
//alert(window.location.protocol);
//alert(window.location.host);
//alert(window.location.pathname);

URL = window.location.href;
//alert(URL);
ishtm = (URL.indexOf('kmpl') > -1);
ishtm1=(URL.indexOf('www.carloan.kotak.com') > -1);
if (ishtm)
	{
	window.location.replace(location.protocol+'//'+'carloan.kotak.com'+'/'+location.pathname.substr(1)+location.search);
	}

if (ishtm1)
	{
	window.location.replace(location.protocol+'//'+'carloan.kotak.com'+'/'+location.pathname.substr(1)+location.search);
	}

function header_hm()
{
	document.write("<table cellpadding='0' cellspacing='0' border='0' class='header'>")
		document.write("<tr>")
			document.write("<td width='14'></td>")
			document.write("<td width='169'><img src='common/images/kotak_logo.gif' alt=''></td>")
			document.write("<td width='120'></td>")
			document.write("<td class='header_links'>")
			document.write("<table cellpadding='0' cellspacing='0' border='0' width='240'>")
				document.write("<tr>")
					document.write("<td width='54' align='center'><a href='aboutus/kpml_pro.htm' class='header_links'>About Us</a></td>")
					document.write("<td width='1'>|</td>")
					document.write("<td width='53' align='center'><a href='careers/careers.htm' class='header_links'>Careers</a></td>")
					document.write("<td width='1'>|</td>")
					document.write("<td width='70' align='center'><a href='contact_us.htm' class='header_links'>Contact Us</a></td>")
					document.write("<td width='1'>|</td>")
					document.write("<td width='60' align='center'><a href='carzone/carzone_main.asp' class='header_links'>Car Zone</a></td>")
				document.write("</tr>")
			document.write("</table>")
			document.write("</td>")
			document.write("<td width='16'></td>")
			document.write("<td width='58' class='header_links'><b>SEARCH</b></td>")
			document.write("<td class='toppadding'><input type='text' class='input' name='searchBox' id='searchBox'><br><a href='#' class='header_links' onClick=window.open('branch_locator.htm','','width=500px,height=500px')>Locate a branch</a></td>")
			document.write("<td width='8' class='toppadding'></td>")
			document.write("<td class='toppadding' width='26'><a href='#' onClick='goSearch();'><img src='common/images/go_btn.gif' alt=''></a></td>")
			document.write("<td width='45'></td>")
		document.write("</tr>")
	document.write("</table>")
}

function header_inner()
{
	document.write("<table cellpadding='0' cellspacing='0' border='0' class='header'>")
		document.write("<tr>")
			document.write("<td width='14'></td>")
			document.write("<td width='169'><img src='../common/images/kotak_logo.gif' alt=''></td>")
			document.write("<td width='120'></td>")
			document.write("<td class='header_links'>")
			document.write("<table cellpadding='0' cellspacing='0' border='0' width='240'>")
				document.write("<tr>")
					document.write("<td width='54' align='center'><a href='../aboutus/kpml_pro.htm' class='header_links'>About Us</a></td>")
					document.write("<td width='1'>|</td>")
					document.write("<td width='53' align='center'><a href='../careers/careers.htm' class='header_links'>Careers</a></td>")
					document.write("<td width='1'>|</td>")
					document.write("<td width='70' align='center'><a href='../contact_us.htm' class='header_links'>Contact Us</a></td>")
					document.write("<td width='1'>|</td>")
					document.write("<td width='60' align='center'><a href='../carzone/carzone_main.asp' class='header_links'>Car Zone</a></td>")
				document.write("</tr>")
			document.write("</table>")
			document.write("</td>")
			document.write("<td width='16'></td>")
			document.write("<td width='58' class='header_links'><b>SEARCH</b></td>")
			document.write("<td class='toppadding'><input type='text' class='input' name='searchBox' id='searchBox'><br><a href='#' class='header_links' onClick=window.open('../branch_locator.htm','','width=500px,height=500px')>Locate a branch</a></td>")
			document.write("<td width='8' class='toppadding'></td>")
			document.write("<td class='toppadding' width='26'><a href='#' onClick='goSearch();'><img src='../common/images/go_btn.gif' alt='search button'></a></td>")
			document.write("<td width='45'></td>")
		document.write("</tr>")
	document.write("</table>")
}

function goSearch()
	{
	var str;
	str=document.getElementById('searchBox').value;
	if (str != '')
		{
		window.location.href='/sresurlt.asp?cx=partner-pub-2531648925526452%3Aitk2pv-21ft&cof=FORID%3A10&ie=ISO-8859-1&q='+str+'&sa=Search';
		}
	}