 function windownload(strUrl)
{	
	 var strUrl;
	 var newWin=window.open(strUrl,'MyWindow1','x=0,y=0,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=1,copyhistory=no,width=580,height=350,screenX=0,screenY=0,left=210,top=200');	
	 newWin.focus();
}	



/*For main home page*/
var IDBI_IP="www.idbipaisabuilder.in";
	function Calculate()
		{
		var Inv=document.getElementById("Inv_Txt");
		var Dur=document.getElementById("Dur_Txt");
		var Rate=document.getElementById("Rate_Txt");
		var Amt=document.getElementById("Amt_Txt");
		if(Inv.value=="")
		{
		alert("Enter Investment Amount")
		document.getElementById("Inv_Txt").focus();
		return;
		}
		else if(Dur.value=="")
		{
		alert("Enter Duration")
		document.getElementById("Dur_Txt").focus();
		return;
		}
		else if(Rate.value=="")
		{
		alert("Enter Rate")
		document.getElementById("Rate_Txt").focus();
		return;
		}
		
		var RoR=((Rate.value/100)+1);
		
		/*var Res=((Inv.value*Dur.value)*RoR);
		Res=Res.toFixed(2);*/
		
		Res=Math.round(Inv.value*(Math.pow((1+Rate.value/100),Dur.value))*100)/100;
		
		Amt.value=Res;
		}
		function NumericCheck()
	{
		if((window.event.keyCode<48 || window.event.keyCode>57)&& window.event.keyCode!=46)
			{
			alert("Enter valid numeral");
			event.returnValue = false;
			}
		else
			{
			event.returnValue = true;
			}
	}
	
	function ClearTxt()
	{
	var Inv=document.getElementById("Inv_Txt");
	var Dur=document.getElementById("Dur_Txt");
	var Rate=document.getElementById("Rate_Txt");
	var Amt=document.getElementById("Amt_Txt");
	Inv.value="";
	Dur.value="";
	Rate.value="";
	Amt.value="";
	Inv.focus();
	}
	
	
	
	/*Links*/
	function Beginer()
		{
			window.parent.location="Get_Started/Inner_Home.aspx?mno=1&index=0&id=1";
		}
		function Investor()
		{
			window.parent.location="Get_Started/Inner_Home.aspx?mno=1&index=1&id=2";
		}
		function Trader()
		{
			window.parent.location="Get_Started/Inner_Home.aspx?mno=1&index=2&id=3";
		}
		function OpenAccount()
		{
			window.parent.location="http://"+IDBI_IP+"/Market_Content/Cm_Data.aspx?Cm_Target=Home/OpenAccount.aspx";
		}
/*For Trade Home*/
		function CallRedirect(nVal)
 {
   document.location.href="https://trade.idbicapital.com/common/topmenu/topcookiesset.asp?bTpflg="+nVal   
 }
 
 function winpopup(strUrl)
{	
	 var strUrl;
	 var newWin = window.open(strUrl, 'MyWindow1', 'x=0,y=0,toolbar=no,location=no,directories=no,status=no,scrollbars=Yes,resizable=1,copyhistory=no,width=580,height=350,screenX=0,screenY=0,left=210,top=200');	
	 newWin.focus();
}	
function winpopEscal(strUrl)
{	
	 var strUrl;
	 var newWin=window.open(strUrl,'MyWindow1','x=0,y=0,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=1,copyhistory=no,width=580,height=450,screenX=0,screenY=0,left=210,top=200');	
	 newWin.focus();
}
function popUp(strUrl) {
    var strUrl;
    var newWin = window.open(strUrl, 'MyWindow1', 'x=0,y=0,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=0,copyhistory=no,width=455,height=370,screenX=0,screenY=0,left=210,top=200');
    newWin.focus();
}	

function ldfiles()
{

srServReq=document.getElementById("srServReq").value;
var StrUrl = srServReq;
window.location = StrUrl;


}


