function CloseWindow()
{
	window.open('','_parent',''); 
	window.close();
	return false;
}

function TabControl(a)
{
	var docf=document.Default;
	document.getElementById('span_tab1').style.background= '#dcdcdc';
	document.getElementById('span_tab2').style.background= '#dcdcdc';

	document.getElementById('span_tab1').style.color = '#330000';
	document.getElementById('span_tab2').style.color = '#330000';
	
	//document.getElementById('lnkNews').style.visibility = "hidden";
	//document.getElementById('lnkEvents').style.visibility = "hidden";
	document.getElementById('lnkNews').innerText = "";
	document.getElementById('lnkEvents').innerText = "";
	
	if(a=='1')
	{
		//document.getElementById('lnkNews').style.visibility = "visible";
		document.getElementById('lnkNews').innerText = "...View News";
		
		document.getElementById('img_tabend').src = 'Images/TabChgDisableEnd.gif';
		document.getElementById('img_tab').src = 'Images/TabChgEnable.gif';
		document.getElementById('span_tab1').style.color = '#dcdcdc';
		document.getElementById('span_tab1').style.background= '#330000';
		document.getElementById('span_text').innerText="PNB Housing Finance Reduces interest rates by 50 basis points on new housing loans, PNBHFR (benchmark rate) remaining unchanged at 12.50%. "

+"\n\nPNB Housing Finance Announces its third quarter results (December 2007) with 76% growth in net profits.";
		
		//Announcing the results, Shri V K " +
		//		"Khanna, the MD of the company informed that during the current year, the "+
		//		"Company has achieved 66% growth in disbursements at Rs. 652 crores (Rs. 393 "+
		//		"crores) and 40% growth in loan outstanding at Rs. 1541 crores (Rs. 1098 "+
		//		"crores). Shri Khanna further informed that the net NPAs of the Company during "+
		//		"the year has come down drastically to 0.79% from 2.83%. The Profit for the year "+
		//		"has been arrived at after providing for 0.40% on standard non-housing loans and "+
		//		"0.20% on standard housing loans. Though	the market is tight due to higher interest rates but demand for housing loan "+
		//		"will continue from middle class.";
	}
	if(a=='2')
	{
	//	document.getElementById('lnkEvents').style.visibility = "visible";
		document.getElementById('lnkEvents').innerText = "...View Events";
		
		document.getElementById('img_tabend').src = 'Images/TabChgEnableEnd.gif';
		document.getElementById('img_tab').src = 'Images/TabChgDisable.gif';
		document.getElementById('span_tab2').style.color = '#dcdcdc';
		document.getElementById('span_tab2').style.background= '#330000';
		document.getElementById('span_text').innerText="Shri V. K. Khanna, Managing Director, PNBHFL and Shri Bimal Balasingham, Director TATA-AIG Life exchanging documents signed on the occasion of strategic tie up for launch of home loan life insurance cover for PNBHFL borrower.";
	}
	return false;
}
function PopUpLoanCalculator()//By pramod
{	
	var h=440;
	var w=400;  
	var top=Math.floor(screen.height/2-h/2)-50;
	var left=Math.floor(screen.width/2-w/2);
	window.open('../Tools/Calculator.aspx','PopupEmiCalc','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no,width='+w+',height='+h+',left='+left+',top='+top);
	return false;	
} 

function PopUpAreaConvertor()//By pramod
{		
	var h=455;
	var w=345;  
	var top=Math.floor(screen.height/2-h/2);
	var left=Math.floor(screen.width/2-w/2);
	window.open('../Tools/AreaConvert.aspx','PopupAreaConvertor','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no,width='+w+',height='+h+',left='+left+',top='+top);
	return false;
}
function PopUpEmiCal()//By pramod
{	
	var h=415;
	var w=440;  
	var top=Math.floor(screen.height/2-h/2);
	var left=Math.floor(screen.width/2-w/2);
	window.open('../Tools/EMICal.aspx','PopUpEmiCalculator','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no,width='+w+',height='+h+',left='+left+',top='+top);
	return false;
}

function PopUpEmiCalHome()//By pramod
{	
	var h=415;
	var w=440;  
	var top=Math.floor(screen.height/2-h/2);
	var left=Math.floor(screen.width/2-w/2);
	window.open('Tools/EMICal.aspx','PopUpEmiCalculator','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no,width='+w+',height='+h+',left='+left+',top='+top);
	return false;
}

function PopUpEmiCalculator()//By Deepkumar
{	
	var h=415;
	var w=440;  
	var top=Math.floor(screen.height-h);
	var left=Math.floor(screen.width-w);
	window.open('Tools/LoanCalc.aspx','PopUpEmiCalculator','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no,width='+w+',height='+h+',left='+left+',top='+top);
	return false;
}
function PopupBranchLocator()
{
	var docf=document.Default;
	var ss=docf.ddlBranch.value;
	var span_id='span';
	var h=600;
	var w=800;  
	var top=Math.floor(screen.height/2-h/2)-25;
	var left=Math.floor(screen.width/2-w/2);
	window.open('Home/BranchLoc.aspx#'+ss,'PopupBranchLocator','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=no,width='+w+',height='+h+',left='+left+',top='+top);
	return false;
}

function PopupBranchLoc()
{
	var h=600;
	var w=800;  
	var top=Math.floor(screen.height/2-h/2)-25;
	var left=Math.floor(screen.width/2-w/2);
	window.open('../Home/BranchLoc.aspx','PopupBranchLocator','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=no,width='+w+',height='+h+',left='+left+',top='+top);
	return false;
	
}

function PopupSRI()
{
	window.open('http://www.sriind.com/','PopupSRI','toolbar=No,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=no,width=800,height=600');
	return false;
}

function popitup(url) {
	newwindow=window.open(url,'name','height=600,width=800');
	if (window.focus) {newwindow.focus()}
	return false;
}

function PopupBranch()
{
	var textwindow='';
	textwindow=window.open('../Home/BranchLoc.aspx','BranchLocator','width=800,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no');
	//window.moveTo(0,0);
	textwindow.opener = top;
	textwindow.focus()
	return false;
}

function PopUpNewYear()//By pramod
{	
	var h=400;
	var w=400;  
	var top=Math.floor(screen.height/2-h/2);
	var left=Math.floor(screen.width/2-w/2);
	window.open('Home/newyear.htm','PopUpEmiCalculator1','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=no,width='+w+',height='+h+',left='+left+',top='+top);
	return false;
}

function ShowPanelUpload()
{
	alert("Test");
	
	document.getElementById('pnlUpload').style.visibility = "hidden";
	alert("Test1")
	document.getElementById('pnlDownLoad').style.visibility = "hidden";
	alert("Test2")
	document.getElementById('pnlDelete').style.visibility = "hidden";
	alert("Test3");
	return false;
}


