function pageloc()
{
	//alert(document.location.href);
	document.form1.pagelocation.value=document.location.href;
	document.form1.submit();

}
function personal_bk_1()
{
	//Personal Banking Tabs for Level 1 files
//document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td valign='top' bgcolor='#ECECEC'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td valign='top'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td valign='top' bgcolor='#FFFFFF' colspan='7'><img src='/common/images/1ptrans.gif' width='2' height='14' alt=''></td></tr><tr><td bgcolor='#030751' width='26' align='right'><img src='/common/images/bullet_8.gif' width='9' height='6' hspace='6' alt=''></td><td bgcolor='#030751' width='105' class='txt_wbd'>Personal Banking</td><td bgcolor='#030751' width='22'><img src='/common/images/topnav/tab_bluert.gif' width='22' height='23' alt=''></td><td width='16'><img src='/common/images/bullet_9.gif' width='6' height='9' hspace='5' alt=''></td><td width='90'><a href='/nri/default.htm' class='txt_bd'>NRI Services</a></td><td width='16'><img src='/common/images/bullet_9.gif' width='6' height='9' hspace='5' alt=''></td><td><a href='/wholesale/default.htm' class='txt_bd'>Wholesale Banking</a></td></tr></table></td></tr></table>");
document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'>");
			   document.write("<tr><td valign='top' bgcolor='#ECECEC'>");
			   	document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'>");
					document.write("<tr>");
					document.write("<td valign='top'>");
						document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'>");
							document.write("<tr><td valign='top' bgcolor='#FFFFFF' colspan='9'><img src='/common/images/1ptrans.gif' width='2' height='14' alt=''>");
							document.write("</td></tr>");
							document.write("<tr>");
								document.write("<td bgcolor='#030751' width='26' align='right'><img src='/common/images/bullet_8.gif' width='9' height='6' hspace='6' alt=''></td>");
								document.write("<td bgcolor='#030751' width='105' class='txt_wbd'>Personal Banking</td>");
								document.write("<td bgcolor='#030751' width='22'><img src='/common/images/topnav/tab_bluert.gif' width='22' height='23' alt=''></td>");
								document.write("<td width='16'><img src='/common/images/bullet_9.gif' width='6' height='9' hspace='5' alt=''></td>");
								document.write("<td width='90'><a href='/nri/default.htm' class='txt_bd'>NRI Banking</a></td>");
								document.write("<td width='16'><img src='/common/images/bullet_9.gif' width='6' height='9' hspace='5' alt=''></td>");
								document.write("<td width='125'><a href='/wholesale/default.htm' class='txt_bd'>Wholesale Banking</a></td>");
								document.write("<td width='10'></td><td align='left'><font color='#2B308C'><a href='javascript:abc()' class='lnk'><font color='#2B308C'>Set as Homepage</font></td>");
							document.write("</tr>");
						document.write("</table>");
					document.write("</td>");
					document.write("<td valign='top' width='200' align='right'>");
						document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'><form name='form1' method='get' action='/applications/misc/search/SearchKeysIns.asp' onsubmit='javascript:pageloc()'><tr><td valign='top' width='22'><img src='/common/images/topnav/tab_grey.gif' width='19' height='35' alt=''></td><td width='130'><input name='searchtext' size='18' class='txt' value='Search this website' onfocus='javascript: document.form1.searchtext.select();'><input type='hidden' name='pagelocation'><input type='hidden' name='check'><input type='hidden' name='siteloc' ></td><td><input type='image' src='/common/images/btn_go.gif' width='24' height='18' border='0' alt='GO'></td></tr></form></table></td></tr></table></td></tr></table>");
}
function personal_bk_2()
{
//Personal Banking Tabs for Level 2 files
//document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td valign='top' bgcolor='#ECECEC'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td valign='top'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td valign='top' bgcolor='#FFFFFF' colspan='7'><img src='/common/images/1ptrans.gif' width='2' height='14' alt=''></td></tr><tr><td bgcolor='#030751' width='26' align='right'><img src='/common/images/bullet_8.gif' width='9' height='6' hspace='6' alt=''></td><td bgcolor='#030751' width='105'><a href='/personal/default.htm' class='txt_wbd'>Personal Banking</a></td><td bgcolor='#030751' width='22'><img src='/common/images/topnav/tab_bluert.gif' width='22' height='23' alt=''></td><td width='16'><img src='/common/images/bullet_9.gif' width='6' height='9' hspace='5' alt=''></td><td width='90'><a href='/nri/default.htm' class='txt_bd'>NRI Services</a></td><td width='16'><img src='/common/images/bullet_9.gif' width='6' height='9' hspace='5' alt=''></td><td><a href='/wholesale/default.htm' class='txt_bd'>Wholesale Banking</a></td></tr></table></td></tr></table>");
document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td valign='top' bgcolor='#ECECEC'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td valign='top'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td valign='top' bgcolor='#FFFFFF' colspan='7'><img src='/common/images/1ptrans.gif' width='2' height='14' alt=''></td></tr><tr><td bgcolor='#030751' width='26' align='right'><img src='/common/images/bullet_8.gif' width='9' height='6' hspace='6' alt=''></td><td bgcolor='#030751' width='105'><a href='/personal/default.htm' class='txt_wbd'>Personal Banking</a></td><td bgcolor='#030751' width='22'><img src='/common/images/topnav/tab_bluert.gif' width='22' height='23' alt=''></td><td width='16'><img src='/common/images/bullet_9.gif' width='6' height='9' hspace='5' alt=''></td><td width='90'><a href='/nri/default.htm' class='txt_bd'>NRI Banking</a></td><td width='16'><img src='/common/images/bullet_9.gif' width='6' height='9' hspace='5' alt=''></td><td><a href='/wholesale/default.htm' class='txt_bd'>Wholesale Banking</a></td></tr></table></td><td valign='top' width='200' align='right'><table width='100%' border='0' cellspacing='0' cellpadding='0'><form name='form1' method='get' action='/applications/misc/search/SearchKeysIns.asp' onsubmit='javascript:pageloc()'><tr><td valign='top' width='22'><img src='/common/images/topnav/tab_grey.gif' width='19' height='35' alt=''></td><td width='130'><input name='searchtext' size='18' class='txt' value='Search this website' onfocus='javascript: document.form1.searchtext.select();'><input type='hidden' name='pagelocation'><input type='hidden' name='check'></td><td><input type='image' src='/common/images/btn_go.gif' width='24' height='18' border='0' alt='GO'></td></tr></form></table></td></tr></table></td></tr></table>");
}
function personal_bk_3()
{
document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td valign='top' bgcolor='#ECECEC'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td bgcolor='#FFFFFF'>&nbsp;<td valign='top' width='200' align='right'><table width='100%' border='0' cellspacing='0' cellpadding='0'><form name='form1' method='get' action='/applications/misc/search/SearchKeysIns.asp' onsubmit='javascript:pageloc()'><tr><td valign='top' width='19'><img src='/common/images/topnav/tab_grey.gif' width='19' height='35' alt=''></td><td width='130'><input name='searchtext' size='18' class='txt' value='Search this website' onfocus='javascript: document.form1.searchtext.select();'><input type='hidden' name='pagelocation'><input type='hidden' name='check'></td><td><input type='image' src='/common/images/btn_go.gif' width='24' height='18' border='0' alt='GO'></td></tr></form></table></td></tr></table></td></tr></table>");
}

function abc()
	{
			var date = new Date();
			date.setTime(date.getTime()+(10000*24*60*60*1000));
			var expires = "; expires="+date.toGMTString();
			document.cookie="defaultpage"+"="+"/personal/default.htm"+expires+"; path=/";
			alert("On your next visit to hdfcbank.com, you will see this page first.")
	}
	
function eraseCookie(name,value,days)
{
	if (days)
	{
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

