function checkhome2()
{
//to check the cookie to find the home page and direct to that pahe when the home link on the header is clicked

var count=0;
var ca = document.cookie.split(";");
var d2;
var d3;
	for(var i=0;i < ca.length;i++)
		{
			var c = ca[i];
			var ckval=ca[i].split("=")
			var d1=ckval[0]
			d2=ckval[1]
			if(d2=="http://hdfcbank.com/personal/default.htm" || d2=="http://hdfcbank.com/wholesale/default.htm" || d2=="http://hdfcbank.com/nri/europe.htm" || d2=="http://hdfcbank.com/nri/middleeast.htm" || d2=="http://hdfcbank.com/nri/northamerica.htm" || d2=="http://hdfcbank.com/nri/africa.htm" || d2=="http://hdfcbank.com/nri/southeastasia.htm" || d2=="http://hdfcbank.com/nri/others.htm" || d2=="http://hdfcbank.com/nri/canada.htm" || d2=="http://hdfcbank.com/nri/australia.htm")
				{
					document.location=d2;
					count=count+1;
				}
		}
		if(count=="0")
			{
				window.top.location.href = 'http://hdfcbank.com/personal/default.htm';
				
			}

}

function cmn_tabs_jobstreets()
{
//Common tabs
document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='24%' height='40' valign='top'><a href='http://hdfcbank.com/personal/default.htm' class='lnk_footer' target='_top'><img src='http://in.jobstreet.com/pic/impact/hdfc/hdfc_logo.gif' width='192' height='31' hspace='12' alt='HDFC Bank' border='0'></a></td><td width='76%' align='right' valign='top' class='lnk_footer'><a href='javascript:checkhome2()' class='lnk_footer'>Home</a>&nbsp;|&nbsp;<a href='http://hdfcbank.com/aboutus/default.htm' class='lnk_footer' target='_top'>About Us</a>&nbsp;|&nbsp;<a href='http://hdfcbank.com/common/sitemap.htm' class='lnk_footer' target='_top'>Sitemap</a>&nbsp;|&nbsp;<a href='http://hdfcbankcareers.jobstreet.com/hdfcbank.htm' class='lnk_footer' target='_top'>Careers</a>&nbsp;|&nbsp;<a href='http://hdfcbank.com/common/fees_default.htm' class='lnk_footer' target='_top'><font color='#FF0000'>Services Charges &amp; Fees</font></a>&nbsp;|&nbsp;<a href='#' class='lnk_footer' onclick=\"javascript: window.open('http://hdfcbank.com/common/forms_center.htm','','height=600, width=600, scrollbars=yes, menubars=no');\" >Forms Centre</a>&nbsp;|&nbsp;<a href=\"javascript: opennewwindow(\'https://www.hdfcbank.com/applications/webforms/customersupport/mainfrm.htm\')\" class='lnk_footer'>Contact Us</a>&nbsp;|&nbsp;<a href='http://hdfcbank.com/common/customer_center.htm' class='lnk_footer' target='_top'>Customer Centre</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr></table></td></tr><tr><td><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='http://in.jobstreet.com/pic/impact/hdfc/1ptrans.gif' width='2' height='14' alt=''></td></tr><tr><td width='16' align='right'><img src='http://in.jobstreet.com/pic/impact/hdfc/bullet_9.gif' width='6' height='9' hspace='5' alt=''></td><td width='104'><a href='http://hdfcbank.com/personal/default.htm' class='txt_bd' target='_top'>Personal Banking</a></td><td width='16'><img src='http://in.jobstreet.com/pic/impact/hdfc/bullet_9.gif' width='6' height='9' hspace='5' alt=''></td><td width='75'><a href='http://hdfcbank.com/nri/default.htm' class='txt_bd' target='_top'>NRI Banking</a></td><td width='16'><img src='http://in.jobstreet.com/pic/impact/hdfc/bullet_9.gif' width='6' height='9' hspace='5' alt=''></td><td width='113'><div align='center'><a href='http://hdfcbank.com/wholesale/default.htm' class='txt_bd' target='_top'>Wholesale Banking</a></div></td><td><img src='http://in.jobstreet.com/pic/impact/hdfc/1ptrans.gif' width='2' height='23' alt=''></td></tr></table></td></tr></table></td></tr><tr><td valign='top' bgcolor='#17266D'><img src='http://in.jobstreet.com/pic/impact/hdfc/1ptrans.gif' width='2' height='6' alt=''></td></tr><tr><td valign='top'><img src='http://in.jobstreet.com/pic/impact/hdfc/1ptrans.gif' width='2' height='1' alt=''></td></tr><tr><td valign='top' class='toolbox_shdw'><img src='http://in.jobstreet.com/pic/impact/hdfc/1ptrans.gif' width='2' height='10' alt=''></td></tr></table></td></tr></table></td></tr></table>");
}


//function cmn_tabs()
//{
////Common tabs
//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 width='16' align='right'><img src='/common/images/bullet_9.gif' width='6' height='9' hspace='5' alt=''></td><td width='104'><a href='/personal/default.htm' class='txt_bd'>Personal Banking</a></td><td width='16'><img src='/common/images/bullet_9.gif' width='6' height='9' hspace='5' alt=''></td><td width='75'><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 width='113'><div align='center'><a href='/wholesale/default.htm' class='txt_bd'>Wholesale Banking</a></div></td><td><img src='/common/images/1ptrans.gif' width='2' height='23' alt=''></td></tr></table></td></tr></table></td></tr><tr><td valign='top' bgcolor='#17266D'><img src='/common/images/1ptrans.gif' width='2' height='6' alt=''></td></tr><tr><td valign='top'><img src='/common/images/1ptrans.gif' width='2' height='1' alt=''></td></tr><tr><td valign='top' class='toolbox_shdw'><img src='/common/images/1ptrans.gif' width='2' height='10' alt=''></td></tr></table>");
//}