// JavaScript Document


function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
}
function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function P7_Snap() { //v2.63 by PVII
 var x,y,ox,bx,oy,p,tx,a,b,k,d,da,e,el,tw,q0,xx,yy,w1,pa='px',args=P7_Snap.arguments;a=parseInt(a);
 if(document.layers||window.opera){pa='';}for(k=0;k<(args.length);k+=4){
 if((g=MM_findObj(args[k]))!=null){if((el=MM_findObj(args[k+1]))!=null){
 a=parseInt(args[k+2]);b=parseInt(args[k+3]);x=0;y=0;ox=0;oy=0;p="";tx=1;
 da="document.all['"+args[k]+"']";if(document.getElementById){
 d="document.getElementsByName('"+args[k]+"')[0]";if(!eval(d)){
 d="document.getElementById('"+args[k]+"')";if(!eval(d)){d=da;}}
 }else if(document.all){d=da;}if(document.all||document.getElementById){while(tx==1){
 p+=".offsetParent";if(eval(d+p)){x+=parseInt(eval(d+p+".offsetLeft"));y+=parseInt(eval(d+p+".offsetTop"));
 }else{tx=0;}}ox=parseInt(g.offsetLeft);oy=parseInt(g.offsetTop);tw=x+ox+y+oy;
 if(tw==0||(navigator.appVersion.indexOf("MSIE 4")>-1&&navigator.appVersion.indexOf("Mac")>-1)){
  ox=0;oy=0;if(g.style.left){x=parseInt(g.style.left);y=parseInt(g.style.top);}else{
  w1=parseInt(el.style.width);bx=(a<0)?-5-w1:-10;a=(Math.abs(a)<1000)?0:a;b=(Math.abs(b)<1000)?0:b;
  x=document.body.scrollLeft+event.clientX+bx;y=document.body.scrollTop+event.clientY;}}
 }else if(document.layers){x=g.x;y=g.y;q0=document.layers,dd="";for(var s=0;s<q0.length;s++){
  dd='document.'+q0[s].name;if(eval(dd+'.document.'+args[k])){x+=eval(dd+'.left');y+=eval(dd+'.top');
  break;}}}e=(document.layers)?el:el.style;xx=parseInt(x+ox+a),yy=parseInt(y+oy+b);
 if(navigator.appVersion.indexOf("MSIE 5")>-1 && navigator.appVersion.indexOf("Mac")>-1){
  xx+=parseInt(document.body.leftMargin);yy+=parseInt(document.body.topMargin);}
 e.left=xx+pa;e.top=yy+pa;}}}
}
/**
function HideAll(){
MM_showHideLayers('HideAll','','hide','SubMenu1','','hide','SubMenu2','','hide','SubMenu3','','hide','SubMenu4','','hide','SubMenu5','','hide','SubMenu6','','hide','SubMenu7','','hide','SubMenu8','','hide','SubMenu9','','hide','SubMenu10','','hide')
}
*/
var SubMenuNumber=10;
var SubMenuArray=new Array ();
function FillArray() {
for (j=1 ; j<=SubMenuNumber;j++)
	{
		SubMenuArray[j]='SubMenu'+j;
	}
}
function HideAll(mm){
  
	MM_showHideLayers('HideAll','','hide');	
	HideAll2(mm);
}
function HideAll1(mm1){
  
	MM_showHideLayers('HideAll1','','hide');	
	HideAll2(mm1);
	
}
function HideApplication(mm1){
  
	MM_showHideLayers('HideApplication','','hide');	
	HideAll2(mm1);
	
}
function HideAllImp(mm2){
  
	MM_showHideLayers('HideAllImp','','hide');	
	HideAll2(mm2);
	
	
	
}
function HideAllImp2(mm3){
  
	MM_showHideLayers('HideAllImp','','hide');	
	HideAll2(mm3);
	
	
	
}
function HideAllImp3(mm4){
  
	MM_showHideLayers('HideAllImp','','hide');	
	HideAll2(mm4);
	
	
	
}
function HideAll2(mm)
{  

	var id = mm.split(","); 
	for (i = 0; i < id.length; i++)
	{
		MM_showHideLayers(id[i],'','hide');
		
	}
	
}

function HideAll3(){
	for (j=1 ; j<SubMenuArray.length;j++)
	{
		MM_showHideLayers(SubMenuArray[j],'','hide')
	}
}
/**/
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

var className = "";
var classID = "";
function changeclass(LienId,LienName){
	var Sub = document.getElementById (LienId);
		if(Sub.className == LienName){
			Sub.className= LienName+"on";
			if (classID != "") changeclass(LienId,LienName);
			classID = LienId;
			className = LienName;
		}
		else
		{
			Sub.className= LienName;
			classID = "";
			className = LienName;
		}
	}
//var CurrentNews = 1;
//var MaxNews = 2;
/*function NextNews(allIds)
{
	var id = allIds.split(","); 
	var MaxNews =id.length;
	var CurrentNews =1;
	if(document.getElementById(id[id.length])
	{
		for(int j =1 ; j<= id.length;j++)
		{
		
		for (i=0; i< MaxNews; i++)	{
			document.getElementById(id[i]).style.display = "none";
		}			
		document.getElementById(id[j]).style.display = "";
		}
	}
	
	//if (CurrentNews == MaxNews)
	//	CurrentNews = 0;
}
function RunDIV()
{
	var ids = "XSLTPosting120120120,XSLTPosting121120120";
	setInterval('NextNews(ids)', 3000);
}*/

var CurrentNews = 0;
var counter = 1;

function NextNews(allIds)
{
	var id = allIds.split(","); 
	var MaxNews = id.length - 1;
	
	if(counter >= MaxNews)
		CurrentNews = id[0];
		else
			CurrentNews = id[counter];
	if(document.getElementById(id[1]))
	{	
		for (i=0; i<MaxNews; i++)	
		{			
			document.getElementById(id[i]).style.display = "none";
			if( counter == MaxNews)
			counter = 0;
			
		}
		document.getElementById(CurrentNews).style.display = "";		
		counter++;
	}
	
	
}

function RunDIV(allIds1)
{
	setInterval('NextNews('+ '\''+allIds1 +'\''+')', 3000);
}

function validApplication(){	
if (document.Form1.cardlimit.value == "")
	{
		alert("Please enter a value for the selected field.");
		document.Form1.cardlimit.focus();
		return;
	}
	else 
	if (document.Form1.title.value == "")
		{
			alert("Please enter a value for the selected field.");
			document.Form1.title.focus();
			return;
		}
		else 
		if (document.Form1.fistname.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.fistname.focus();
				return;
			}
		else 
		if (document.Form1.middlename.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.middlename.focus();
				return;
			}
		else 
		if (document.Form1.familyname.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.familyname.focus();
				return;
			}
		else
			document.Form1.submit();
	

}
var PanelSlideOut1 = "";
function revelerCacherSousNav1(LienId){
var Sub = document.getElementById (LienId+"_sub");

	if(Sub.style.display == "none"){
		document.getElementById (LienId).style.color="#0b8d0b";
		Sub.style.display = "";
		if (PanelSlideOut1 != "") revelerCacherSousNav1(PanelSlideOut1);
		PanelSlideOut1 = LienId;
	}
	else
	{
		document.getElementById (LienId).style.color="";
		/*document.getElementById (LienId).className='productTitle';
		document.getElementById (plus).className='plus';*/
		Sub.style.display = "none";
		PanelSlideOut1 = "";
	}
}
/*calculators functions*/
function checkNum(input) {
	var oldnum;
	var newnum;
	var ch;
	oldnum = input.value;
	newnum ="";
	for(var i=0; i<oldnum.length; i++) {
		ch = oldnum.charAt(i);
		if(ch != ",") {
			newnum += ch;
		}
	}
	return parseFloat(newnum);
}
function checkNumPeriods(input,plus) {
	  input.value = checkNum(input);
        input.value = parseInt(input.value);
        if(input.value == null || input.value.length == 0 || input.value == "NaN") {
                input.value = "";
        }
        else {
                if(parseFloat(input.value) <= 0) {
                        input.value = "";
                }
        }
		if(plus==1)
        	calcMonthlyplus(input.form);
			else if(plus==2)
				calcMonthly2(input.form);
				else
					calcMonthly(input.form);
		input.value = put_commas(input.value);
}
function strip_commas(input) {
        var newnum;
        var ch;
        newnum ="";
        for(var i=0; i<input.length; i++) {
                ch = input.charAt(i);
                if(ch != ",") {
                        newnum += ch;
                }
        }
        return parseFloat(newnum);
}
function put_commas(input) {
    var result, len;
    input += "";
    len = input.indexOf(".");
    if(len == -1) {
        len = input.length;
        result = "";
    }
    else {
        result = input.substring(len, input.length);
    }
    while(len > 3) {
        result = input.substring(len-3, len) + result;
        result = "," + result;
        len -= 3;
    }
    result = input.substring(0, len) + result;
    return result;
}
function checkLoan(input,plus) {
	  input.value = checkNum(input);
        input.value = parseFloat(input.value);
        if(input.value == null || input.value.length == 0 || input.value == "NaN") {
                input.value = "";
        }
        else {
                if(parseFloat(input.value) < 0) {
                        input.value = "";
                }
        }
        if(plus==1)
        	calcMonthlyplus(input.form);
			else if(plus==2)
				calcMonthly2(input.form);
				else
					calcMonthly(input.form);
		input.value = put_commas(input.value);
}
function checkInterest(input,plus) {
        input.value = parseFloat(input.value);
        if(input.value == null || input.value.length == 0 || input.value == "NaN") {
                input.value = "";
			}
        else {
                if(parseFloat(input.value) <= 0 || parseFloat(input.value) > 100.0) {
                        input.value = "";
                }
        }
        if(plus==1)
        	calcMonthlyplus(input.form);
			else if(plus==2)
				calcMonthly2(input.form);
				else
					calcMonthly(input.form);
}
function calcMonthlyplus(input) {
        if(input.interest.value == "" || input.nper.value == "" || input.loan.value == "" ) {
                input.monthly.value = "";
        }
        else {
                i = strip_commas(input.interest.value) / 100;
                i = i / 12;
                n = strip_commas(input.nper.value) * 12;
                tmp = (1/i) * (1 - Math.pow(1/(1+i), n));
                tmp = strip_commas(input.loan.value) / tmp;
                tmp = Math.round(tmp*100) / 100;
				input.total.value = put_commas(Math.round(12 *(tmp * input.nper.value)))
				input.monthly.value = put_commas(Math.round(tmp));
                if(input.monthly.value == null || input.monthly.value.length == 0 || input.monthly.value == "NaN") {
                        input.monthly.value = "";
                }
        }
}
function calcMonthly(input) {
        if(input.interest.value == "" || input.nper.value == "" || input.loan.value == "" ) {
                input.monthly.value = "";
        }
        else {
                i = strip_commas(input.interest.value) / 100;
                i = i / 12;
                n = strip_commas(input.nper.value); //* 12
                tmp = (1 - Math.pow(1/(1+i), n));
                tmp = strip_commas(input.loan.value) * i/ tmp;
                tmp = Math.round(tmp*100) / 100;
				   input.total.value = put_commas(Math.round((tmp * input.nper.value)))
				   input.monthly.value = put_commas(Math.round(tmp));
         		  if(input.monthly.value == null || input.monthly.value.length == 0 ||  input.monthly.value == "NaN") {
                       input.monthly.value = "";
                }
        }
}
function calcMonthly2(input) {
        if(input.interest.value == "" || input.nper.value == "" || input.loan.value == "" ) {
                input.monthly.value = "";
        }
        else {
                i = strip_commas(input.interest.value) / 100;
                i = i / 12;
                n = strip_commas(input.nper.value) * 12;
                tmp = (1 - Math.pow(1/(1+i), n));
                tmp = strip_commas(input.loan.value) * i/ tmp;
                tmp = Math.round(tmp*100) / 100;
				   input.total.value = put_commas(Math.round(12 *(tmp * input.nper.value)))
				   input.monthly.value = put_commas(Math.round(tmp));
         		  if(input.monthly.value == null || input.monthly.value.length == 0 || input.monthly.value == "NaN") {
                       input.monthly.value = "";
                }
        }
}

<!--charbel functions-->

function checking(input,plus) {
	  input.value = checkNum(input);
        input.value = parseFloat(input.value);
        if(input.value == null || input.value.length == 0 || input.value == "NaN") {
                input.value = "";
        }
        else {
                if(parseFloat(input.value) < 0) {
                        input.value = "";
                }
        }
        
					
		input.value = put_commas(input.value);
}

<!--PC Calculators-->
function calculatepc(input)
{
	
     if(input.interest.value == "" || input.month.value == "" || input.loan.value == "" )
	 {
        input.amount.value = "";
     }
        else {
                g = strip_commas( input.month.value ) / 12;
               
                
               a = strip_commas(input.loan.value) ;
			   b = strip_commas(input.interest.value) ;
			   tmp2=a;
			  
			   input.peryear.value = g.toFixed(2) ;
			 				
			   d = a * b * g / 100 ;
			   tmp1=d;
			   input.totalint.value = put_commas ( d.toFixed(0) ) ;
			   
			   e = eval(a) + eval(input.totalint.value) ;
			   input.loanint.value =  put_commas( e ) ;
			   tmp3= tmp1+tmp2;
			   
			   f = input.month.value ;
			   input.amount.value = put_commas( (tmp3 / f).toFixed(2) ) ;
           }
}

<!-- Used Car Calculator-->

function usedcar(input)
{
	price = strip_commas (input.price.value);
	downpayment = strip_commas (input.down.value);
	input.downper.value = put_commas (Math.round( (downpayment / price)*100 ) ) ;
	
	input.originalloan.value = put_commas ( price - downpayment ) ;
	
	if ( input.lossin.value == "Y" ) 
	{
		if ( input.loanperiod.value == 6 || input.loanperiod.value == 12 )
		{
			minpremium = 225 ;
			lossrate = 0.0175 ;
			
			tlr6 = lossrate * price ;
			
			if ( tlr6 < minpremium )
			
			    input.lossin2.value = minpremium  ;
				else
				input.lossin2.value = Math.round( tlr6 )  ;
			
		}
		else if ( input.loanperiod.value == 18 || input.loanperiod.value == 24 )
		{
			minpremium = 275 ;
			lossrate = 0.0225 ;
			
			tlr18 = lossrate * price ;
			
			if ( tlr18 < minpremium )
			
			    input.lossin2.value = minpremium ;
				else
				input.lossin2.value = Math.round( tlr18 ) ;
		}
			else if ( input.loanperiod.value == 30 || input.loanperiod.value == 36 )
		{
			minpremium = 325 ;
			lossrate = 0.0275 ;
			
			tlr30 = lossrate * price ;
			
			if ( tlr30 < minpremium )
			
			    input.lossin2.value = minpremium ;
				else
				input.lossin2.value = Math.round( tlr30 ) ;
		}
		else if ( input.loanperiod.value == 48 )
		{
			minpremium = 400 ;
			lossrate = 0.0375 ;
			
			tlr48 = lossrate * price ;
			
			if ( tlr48 < minpremium )
			
			    input.lossin2.value = minpremium ;
				else
				input.lossin2.value = Math.round( tlr48 ) ;
		} 
		else
			input.lossin2.value = NaN ;
			input.riskins.value = 0 ;
	}

	else if (input.lossin.value == "N" )
	{
		input.lossin2.value = 0 ;
		<!-- begin-->
		if ( input.loanperiod.value == 6 || input.loanperiod.value == 12 )
		{
			ins = 0.04 ;
			ins1 = 0.0375 ;
			rins = ins * price ;
			rins1 = ins1 * price ;
			minimum = 450 ;
			minimum1 = 400 ;
				
				if ( input.risk.value == 0 ) 
				{
					 input.test.value = Math.round( rins ) ;
					 input.test1.value = minimum ;
					 
					 if ( minimum > rins )
					input.riskins.value = minimum ;
					else
					input.riskins.value = put_commas ( rins ) ;
				}
					else
					{
						input.test.value = Math.round( rins1 ) ;
						input.test1.value = minimum1 ;
						
								if ( minimum1 > rins1 )
							input.riskins.value = minimum1 ;
							else
							input.riskins.value = put_commas ( rins1 ) ;
					}
					
			
		}
		<!--end-->
		
		<!-- begin -->
		if ( input.loanperiod.value == 18 || input.loanperiod.value == 24 )
		{
			ins = 0.0675 ;
			ins1 = 0.0570 ;
			rins = ins * price ;
			rins1 = ins1 * price ;
			minimum = 675 ;
			minimum1 = 600 ;
				
				if ( input.risk.value == 0 ) 
				{
					 input.test.value = Math.round( rins ) ;
					 input.test1.value =  minimum  ;
					 
					  if ( minimum > rins )
					input.riskins.value = minimum ;
					else
					input.riskins.value = put_commas ( rins ) ;
				}
					else
					{
						input.test.value = Math.round( rins1 ) ;
						input.test1.value =  minimum1 ;
						
						if ( minimum1 > rins1 )
					input.riskins.value = minimum1 ;
					else
					input.riskins.value = put_commas ( rins1 ) ;
					}
			
		}
		<!-- end -->
		
		<!-- begin -->
		
		if ( input.loanperiod.value == 30 || input.loanperiod.value == 36 )
		{
			ins = 0.0925 ;
			ins1 = 0.0750 ;
			rins = ins * price ;
			rins1 = ins1 * price ;
			minimum = 900 ;
			minimum1 = 800 ;
				
				if ( input.risk.value == 0 ) 
				{
					 input.test.value = Math.round( rins ) ;
					 input.test1.value = minimum ;
					 
					  if ( minimum > rins )
					input.riskins.value = minimum ;
					else
					input.riskins.value = put_commas ( rins ) ;
				}
					else
					{
						input.test.value = Math.round( rins1 ) ;
						input.test1.value = minimum1 ;
						
						if ( minimum1 > rins1 )
					input.riskins.value = minimum1 ;
					else
					input.riskins.value = put_commas ( rins1 ) ;
					}
					
			
		}
		<!-- end -->
		
		<!-- begin -->
		if ( input.loanperiod.value == 48 )
		{
			ins = 0.1125 ;
			ins1 = 0.0925 ;
			rins = ins * price ;
			rins1 = ins1 * price ;
			minimum = 1100 ;
			minimum1 = 950 ;
				
				if ( input.risk.value == 0 ) 
				{
					 input.test.value = Math.round( rins ) ;
					 input.test1.value = minimum ;
					 
					 if ( minimum > rins )
					input.riskins.value = minimum ;
					else
					input.riskins.value = put_commas ( rins ) ;
				}
					else
					{
						input.test.value = Math.round( rins1 ) ;
						input.test1.value = minimum1 ;
						
							if ( minimum1 > rins1 )
						input.riskins.value = minimum1 ;
						else
						input.riskins.value = put_commas ( rins1 ) ;
					}
					
			
		}
		
		<!-- end -->
		
	}

<!-- Total Loan begin -->

original = strip_commas ( input.originalloan.value ) ;

input.totalloan.value = put_commas ( Math.round ( eval (original) + eval (input.lossin2.value) + eval ( strip_commas ( input.riskins.value ) ) + eval (input.filefee.value ) ) ) ;

<!-- Total Loan end -->

<!-- interest amount begin -->

input.intamount.value = put_commas ( Math.ceil( strip_commas ( input.totalloan.value ) * input.intrate.value / 100 * input.loanperiod.value / 12 ) ) ;

<!-- interest amount end -->

<!-- total loan amount begin -->

input.totalloanamount.value = put_commas ( Math.round( eval( strip_commas ( input.intamount.value ) ) + eval( strip_commas ( input.totalloan.value ) ) ) ) ;

<!-- total loan amount begin -->


<!-- Monthly Payment begin -->

input.monpay.value = put_commas ( Math.ceil( strip_commas ( input.totalloanamount.value ) / input.loanperiod.value ) ) ;

<!-- Monthly Payment end -->

<!-- total loan amount1 begin -->

input.totalloanamount1.value = put_commas ( Math.round( strip_commas ( input.monpay.value ) * input.loanperiod.value ) ) ;

<!-- total loan amount1 begin -->

}


<!-- New Car Calculator-->

function newcar(input)
{
	price = strip_commas (input.price.value);
	downpayment = strip_commas (input.down.value);
	input.downper.value = put_commas (Math.round( (downpayment / price)*100 ) ) ;
	
	input.originalloan.value = put_commas ( price - downpayment ) ;
	
	
		

		<!-- begin-->
		if ( input.loanperiod.value == 6 || input.loanperiod.value == 12 )
		{
			ins = 0.03 ;
			ins1 = 0.0265 ;
			rins = ins * price ;
			rins1 = ins1 * price ;
			minimum = 400 ;
			minimum1 = 350 ;
				
				if ( input.risk.value == 0 ) 
				{
					 input.test.value = Math.round( rins ) ;
					 input.test1.value = minimum ;
					 
					 if ( minimum > rins )
					input.riskins.value = put_commas ( Math.round( minimum ) ) ;
					else
					input.riskins.value = put_commas ( Math.round( rins ) ) ;
				}
					else
					{
						input.test.value = Math.round( rins1 ) ;
						input.test1.value = minimum1 ;
						
								if ( minimum1 > rins1 )
							input.riskins.value = put_commas ( Math.round( minimum1 ) ) ;
							else
							input.riskins.value = put_commas ( Math.round( rins1 ) ) ;
					}
					
			
		}
		<!--end-->
		
		<!-- begin -->
		if ( input.loanperiod.value == 18 || input.loanperiod.value == 24 )
		{
			ins = 0.055 ;
			ins1 = 0.048 ;
			rins = ins * price ;
			rins1 = ins1 * price ;
			minimum = 600 ;
			minimum1 = 525 ;
				
				if ( input.risk.value == 0 ) 
				{
					 input.test.value = Math.round( rins ) ;
					 input.test1.value =  minimum  ;
					 
					  if ( minimum > rins )
					input.riskins.value = put_commas ( Math.round( minimum ) ) ;
					else
					input.riskins.value = put_commas ( Math.round( rins ) ) ;
				}
					else
					{
						input.test.value = Math.round( rins1 ) ;
						input.test1.value =  minimum1 ;
						
						if ( minimum1 > rins1 )
					input.riskins.value = put_commas ( Math.round( minimum1 ) ) ;
					else
					input.riskins.value = put_commas ( Math.round( rins1 ) ) ;
					}
			
		}
		<!-- end -->
		
		<!-- begin -->
		
		if ( input.loanperiod.value == 30 || input.loanperiod.value == 36 )
		{
			ins = 0.07 ;
			ins1 = 0.0625 ;
			rins = ins * price ;
			rins1 = ins1 * price ;
			minimum = 800 ;
			minimum1 = 725 ;
				
				if ( input.risk.value == 0 ) 
				{
					 input.test.value = Math.round( rins ) ;
					 input.test1.value = minimum ;
					 
					  if ( minimum > rins )
					input.riskins.value = put_commas ( Math.round( minimum ) ) ;
					else
					input.riskins.value = put_commas ( Math.round( rins ) ) ;
				}
					else
					{
						input.test.value = Math.round( rins1 ) ;
						input.test1.value = minimum1 ;
						
						if ( minimum1 > rins1 )
					input.riskins.value = put_commas ( Math.round( minimum1 ) ) ;
					else
					input.riskins.value = put_commas ( Math.round( rins1 ) ) ;
					}
					
			
		}
		<!-- end -->
		
		<!-- begin -->
		if ( input.loanperiod.value == 48 )
		{
			ins = 0.0825 ;
			ins1 = 0.075 ;
			rins = ins * price ;
			rins1 = ins1 * price ;
			minimum = 1000 ;
			minimum1 = 900 ;
				
				if ( input.risk.value == 0 ) 
				{
					 input.test.value = Math.round( rins ) ;
					 input.test1.value = minimum ;
					 
					 if ( minimum > rins )
					input.riskins.value = put_commas ( Math.round( minimum ) ) ;
					else
					input.riskins.value = put_commas ( Math.round( rins ) ) ;
				}
					else
					{
						input.test.value = Math.round( rins1 ) ;
						input.test1.value = minimum1 ;
						
							if ( minimum1 > rins1 )
						input.riskins.value = put_commas ( Math.round( minimum1 ) ) ;
						else
						input.riskins.value = put_commas ( Math.round( rins1 ) ) ;
					}
					
			
		}
		
		<!-- end -->
		
		<!-- begin -->
		if ( input.loanperiod.value == 60 )
		{
			ins = 0.095 ;
			ins1 = 0.087 ;
			rins = ins * price ;
			rins1 = ins1 * price ;
			minimum = 1150 ;
			minimum1 = 1000 ;
				
				if ( input.risk.value == 0 ) 
				{
					 input.test.value = Math.round( rins ) ;
					 input.test1.value = minimum ;
					 
					 if ( minimum > rins )
					input.riskins.value = put_commas ( Math.round( minimum ) ) ;
					else
					input.riskins.value = put_commas ( Math.round( rins ) ) ;
				}
					else
					{
						input.test.value = Math.round( rins1 ) ;
						input.test1.value = minimum1 ;
						
							if ( minimum1 > rins1 )
						input.riskins.value = put_commas ( Math.round( minimum1 ) ) ;
						else
						input.riskins.value = put_commas ( Math.round( rins1 ) ) ;
					}
					
			
		}
		
		<!-- end -->
		
	
	

<!-- Total Loan begin -->

original = strip_commas ( input.originalloan.value ) ;

input.totalloan.value = put_commas ( eval (original) + eval ( strip_commas ( input.riskins.value) ) + eval (input.filefee.value) ) ;

<!-- Total Loan end -->

<!-- interest amount begin -->

input.intamount.value = put_commas ( Math.ceil( strip_commas ( input.totalloan.value ) * input.intrate.value / 100 * input.loanperiod.value / 12 ) ) ;

<!-- interest amount end -->

<!-- total loan amount begin -->

input.totalloanamount.value = put_commas ( Math.round( eval( strip_commas ( input.intamount.value ) ) + eval( strip_commas ( input.totalloan.value ) ) ) ) ;

<!-- total loan amount begin -->


<!-- Monthly Payment begin -->

input.monpay.value = put_commas ( Math.ceil( strip_commas ( input.totalloanamount.value ) / input.loanperiod.value ) ) ;

<!-- Monthly Payment end -->

<!-- total loan amount1 begin -->

input.totalloanamount1.value = put_commas ( Math.round( strip_commas ( input.monpay.value ) * input.loanperiod.value ) ) ;

<!-- total loan amount1 begin -->

}

<!--enable/disable dropdown-->
function EnableDisable(name,value)
{
	if(name=='visa')
	{
		document.Form1.visa.disabled = false;
		document.Form1.mastercard.disabled = true;
	}
	else
	{
		document.Form1.mastercard.disabled = false;
		document.Form1.visa.disabled = true;	
	}
}
function Show(LayerName,ImageName,ImageH){
	
	MM_showHideLayers(LayerName,'','show');
}


function Hide(LayerName,ImageName){
	
	
	MM_showHideLayers(LayerName,'','hide');
}
function validate() { 
   var filename = document.getElementById("File1").value;
   
   var ext = getExt(filename); 
   if(ext == "pdf" || ext == "doc" || ext == "xls" || ext == "jpg") 
      return true; 
   alert("Please upload PDF,Doc,Xls,and Jpg files only."); 
   return false; 
} 

function getExt(filename) { 
   var dot_pos = filename.lastIndexOf("."); 
   if(dot_pos == -1) 
      return ""; 
   return filename.substr(dot_pos+1).toLowerCase(); 
} 

function submitform() {
loop=document.Form1.Text6.selectedIndex;
id = document.Form1.Text6.options[loop].value;
loop1=document.Form1.Text7.selectedIndex;
id1= document.Form1.Text7.options[loop1].value;
var str = document.Form1.Text3.value;
var filter =/^.+@.+\..{2,3}$/;
if (document.Form1.Text1.value == ""){
	alert('Please enter your first name!');
	document.Form1.Text1.focus();
	return false;
	}
else if (document.Form1.Text2.value == ""){
	alert('Please enter your last name!');
	document.Form1.Text2.focus();return false;}
else if ( str == "" || !filter.test(str) ){ 
	alert('Please enter a valid email address!');
	document.Form1.Text3.focus();
	return false;
	}
else if (id==0){
	alert('Please enter your gender!');
	document.Form1.Text6.focus();
	return false;
	}
else if (id1==0){
	alert('Please enter your country!');
	document.Form1.Text7.focus();
	return false;}
else
{
	document.Form1.submit();
	return true;
} 
}
function resetform(){
	document.Form1.reset();
	}

function checkLength(){
if(document.forms[0].SearchTerm.value.length < 3){
alert("Keyword must be at least 3 char");
return false;}}
/*
Hilite={elementid:'idBody',exact:false,max_nodes:1000,onload:true,style_name:'hilite',style_name_suffix:true,debug_referrer:''};
Hilite.search_engines= [['.+bbac.+','_SearchTerm=']]//[['^http://(www)?\\.?google.*','q='],['^http://search\\.yahoo.*','p='],['^http://search\\.msn.*','q='],['^http://search\\.aol.*','userQuery='],['^http://(www\\.)?altavista.*','q='],['^http://(www\\.)?feedster.*','q='],['^http://search\\.lycos.*','query='],['^http://(www\\.)?alltheweb.*','q=']];
Hilite.decodeReferrer=function(referrer){
var query=null;
var match=new RegExp('');
for(var i=0;i<Hilite.search_engines.length;i++){
//match.compile(Hilite.search_engines[i][0],'i');
match.compile('^.*'+Hilite.search_engines[i][1]+'([^&]+)&?.*$');
if(referrer.match(match)){
//match.compile('^.*'+Hilite.search_engines[i][1]+'([^&]+)&?.*$');
query=referrer.replace(match,'$1');
if(query){query=decodeURIComponent(query);
query=query.replace(/\'|"/,'');
query=query.split(/[\s,\+\.]+/);
return query;}}}return null;};
Hilite.hiliteElement=function(elm,query){
if(!query||elm.childNodes.length==0)
return;var qre=new Array();
for(var i=0;i<query.length;i++){
query[i]=query[i].toLowerCase();
if(Hilite.exact)qre.push('\\b'+query[i]+'\\b');
else qre.push(query[i]);}
qre=new RegExp(qre.join("|"),"i");
var stylemapper={};
for(var i=0;i<query.length;i++)
stylemapper[query[i]]=Hilite.style_name+(i+1);
var textproc=function(node){
var match=qre.exec(node.data);
if(match){
var val=match[0];var k='';
var node2=node.splitText(match.index);
var node3=node2.splitText(val.length);
var span=node.ownerDocument.createElement('SPAN');
node.parentNode.replaceChild(span,node2);
span.className=stylemapper[val.toLowerCase()];
span.appendChild(node2);
return span;}
else{return node;}};
Hilite.walkElements(elm.childNodes[0],1,textproc);};
Hilite.hilite=function(){var q=Hilite.debug_referrer?Hilite.debug_referrer:document.referrer;
var e=null;q=Hilite.decodeReferrer(q);
if(q&&((Hilite.elementid&&(e=document.getElementById(Hilite.elementid)))||(e=document.body))){
Hilite.hiliteElement(e,q);}};
Hilite.walkElements=function(node,depth,textproc){
var skipre=/^(script|style|textarea)/i;
var count=0;
while(node&&depth>0){count++;if(count>=Hilite.max_nodes){
var handler=function(){Hilite.walkElements(node,depth,textproc);};
setTimeout(handler,50);return;}if(node.nodeType==1){
if(!skipre.test(node.tagName)&&node.childNodes.length>0){
node=node.childNodes[0];depth++;continue;}}
else 
if(node.nodeType==3){node=textproc(node);}if(node.nextSibling){node=node.nextSibling;}
else{while(depth>0){node=node.parentNode;depth--;if(node.nextSibling){node=node.nextSibling;break;}}}}};
if(Hilite.onload){if(window.attachEvent){
window.attachEvent('onload',Hilite.hilite);}
else if(window.addEventListener){window.addEventListener('load',Hilite.hilite,false);}
else{
var __onload=window.onload;
window.onload=function(){
Hilite.hilite();
__onload();};}}

*/




var PanelSlideOut1 	= "";
var ClassName1 		= "";
var IdNextTD1 		= "";
var ClassNextTD1 	= "";
function revelerCacherSousNav1(LienId,ClassName,IdNextTD,ClassNextTD){
var Sub = document.getElementById (LienId+"_sub");
		
	if(Sub.style.display == "none"){
	
		document.getElementById(LienId).style.color="#0b8d0b";
		document.getElementById (LienId).className=ClassName+"on";
		document.getElementById (IdNextTD).className=ClassNextTD;
		
		Sub.style.display = "";
		if (PanelSlideOut1 != "") 
			revelerCacherSousNav1(PanelSlideOut1,ClassName1,IdNextTD1,ClassNextTD1);
		PanelSlideOut1	= LienId;
		ClassName1		= ClassName;
		IdNextTD1		= IdNextTD;
		ClassNextTD1	= ClassNextTD;
	}
	else
	{
	
		document.getElementById(LienId).style.color="";
		document.getElementById (LienId).className=ClassName;
		document.getElementById (IdNextTD).className=ClassNextTD+"out";
		Sub.style.display = "none";
		PanelSlideOut1	= "";
		ClassName1		= "";
		IdNextTD1		= "";
		ClassNextTD1	= "";
	}
}
var PanelSlideOut2 	= "";
var ClassName2 		= "";
var IdNextTD2 		= "";
var ClassNextTD2 	= "";
function revelerCacherSousNav2(LienId,ClassName,IdNextTD,ClassNextTD){
var Sub = document.getElementById (LienId+"_sub");
	if(Sub.style.display == "none"){
		document.getElementById(LienId).style.color="#0b8d0b";
		document.getElementById (LienId).className=ClassName+"on";
		document.getElementById (IdNextTD).className=ClassNextTD;
		
		Sub.style.display = "";
		if (PanelSlideOut2 != "") 
			revelerCacherSousNav2(PanelSlideOut2,ClassName2,IdNextTD2,ClassNextTD2);
		PanelSlideOut2	= LienId;
		ClassName2		= ClassName;
		IdNextTD2		= IdNextTD;
		ClassNextTD2	= ClassNextTD;
	}
	else
	{
		document.getElementById(LienId).style.color="";
		document.getElementById (LienId).className=ClassName;
		document.getElementById (IdNextTD).className=ClassNextTD+"out";
		Sub.style.display = "none";
		PanelSlideOut2	= "";
		ClassName2		= "";
		IdNextTD2		= "";
		ClassNextTD2	= "";
	}
}

function ClickButton()
{
	
	if (event.keyCode == 13)
	{

		var Sub = document.getElementById("btnSearchId");
		event.returnValue=false;
		event.cancel = true;
		Sub.click();
		
	}
}


var period1 = [0,6,12,18,24,30,36,48];
var period2 = [0,6,12,18,24,30,36,48,60];
function CreateMenu(MenuName,MenuLength,MenuData){
	var MyForm = document.Form1;
	RemoveMenu(MyForm[MenuName]);
	for(i=0;i<=MenuLength;i++){
		if(i==0){
			var newOpt = document.createElement("OPTION");
			newOpt.text = "Select period";
			newOpt.value= "";
			MyForm[MenuName].add(newOpt)
		}else{
				var newOpt = document.createElement("OPTION");
				newOpt.text = eval(MenuData)[i];
				newOpt.value= eval(MenuData)[i];
				MyForm[MenuName].add(newOpt)
		}
	}
}
function RemoveMenu(MenuName){
	selLength = MenuName.length
	if (selLength>0){
		for(i=0;i<=selLength;i++){
			MenuName.remove(i);
		}
		MenuName.innerHTML = ""
	}
}
function disableddl()
{
var MyForm = document.Form1;	
if(MyForm.car[0].checked){
			document.Form1.lossin.disabled=true;
	}
}

function CreateMenus(){
		
		var MyForm = document.Form1;	
		if(MyForm.car[1].checked){
			CreateMenu("loanperiod",7,"period1");
			//document.Form1.lossin.disabled=false;
		}else{
			CreateMenu("loanperiod",8,"period2");
			//document.Form1.lossin.disabled=true;
			//document.Form1.lossin2.value='';
		}
}
function SetEnable(){
	
	var MyForm = document.Form1;
	
		if(MyForm.car[1].checked){
			document.Form1.lossin.disabled=false;
		}else{
			document.Form1.lossin.disabled=true;
			document.Form1.lossin2.value='';
		}
}
function click_button(input){
	var MyForm = document.Form1;
	
	 if(input.price.value == "" || input.down.value == "" || input.loanperiod.value == "" || input.intrate.value == ""|| input.filefee.value == "" )
	 {
        input.downper.value = "";
        input.originalloan.value = "";
        input.lossin2.value = "";
        input.riskins.value = "";
        input.totalloan.value = "";
        input.intamount.value = "";
        input.totalloanamount.value = "";
        input.monpay.value = "";
        input.totalloanamount1.value = "";
     }
     else
     {
		if(MyForm.car[1].checked){
			usedcar(input);
		}
		else{
			newcar(input);
		}
	}
}

function FillDropDown(year)
{
	 
		
	var id = year.split(","); 
	
	var quarter = new Array();
	var quarter2 = new Array();
	var selectedText = document.forms[0].Archieved;
	var selected = selectedText(selectedText.selectedIndex).text; // gives the selected text YeaR 2005
	var selectedYear = selected.substring(5,selected.length);// GIVES THE SELECTED YEAR 2005
	
	// get the quarte drop down
	var ddlQuarter = document.forms[0].quarter;
	RemoveMenu(document.forms[0].quarter);
	for (i = 0; i < id.length; i++)
	{ 
		quarter[i] = id[i].substring(0,id[i].indexOf("_")); // gives 2004 for example
		quarter2[i] =quarter[i].substring(quarter[i].indexOf("."),"."); // give 3 quarter number
	}
	var k = 1
	for ( j=0; j < quarter.length ; j++)
		{
		
			if ( quarter[j] == selectedYear )
			{
				var newOpt = document.createElement("OPTION");
				var w = id[j].substring(id[j].indexOf("_")+1 ,id[j].indexOf("_")+ 2);
				newOpt.text ="quarter "  + w ;
				newOpt.value=  id[j].substring(10,id[j].length) //"_" + k +".pdf";
				ddlQuarter.add(newOpt)
				k++;
			}
	}
}

function ResizeBrowser(){

	document.getElementById('ContentPanel2').height=screen.height - 334;
}
function ResizeBrowser1(){

	document.getElementById('ContentPanel2').height=screen.height - 334;
}
function ResizeBrowser2(){

	document.getElementById('ContentPanel2').height=screen.height - 237;
}

/*modifications 12-10-06 applications functions*/
function ApplianceLoan_valid(){	
if (document.Form1.firstname.value == "")
	{
		alert("Please enter a value for the selected field.");
		document.Form1.firstname.focus();
		return(false);
	}
	else 
	if (document.Form1.fathername.value == "")
		{
			alert("Please enter a value for the selected field.");
			document.Form1.fathername.focus();
			return(false);
		}
		else 
		if (document.Form1.lastname.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.lastname.focus();
				return(false);
			}
		else 
		if (document.Form1.maritalstatus.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.maritalstatus.focus();
				return(false);
			}
		else 
		if (document.Form1.gender.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.gender.focus();
				return(false);
			}
			if (document.Form1.nationality.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.nationality.focus();
				return(false);
			}
			if (document.Form1.address.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.address.focus();
				return(false);
			}
			if (document.Form1.city.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.city.focus();
				return(false);
			}
			if (document.Form1.city.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.city.focus();
				return(false);
			}
			if (document.Form1.country.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.country.focus();
				return(false);
			}
			if (document.Form1.mobile1.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.mobile1.focus();
				return(false);
			}
			if (document.Form1.currency.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.currency.focus();
				return(false);
			}
			if (document.Form1.loanamount1.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.loanamount1.focus();
				return (false);
			}
		else
		{
			return (true);
			//document.Form1.submit();
		}
	

}
function CarLoan_valid(){
	if (ApplianceLoan_valid() == false)
	{
		return false;
	}

			if (document.Form1.totalloanamount.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.totalloanamount.focus();
				return (false);
			}
}
function CreditCard_valid(){
if (document.Form1.firstname.value == "")
	{
		alert("Please enter a value for the selected field.");
		document.Form1.firstname.focus();
		return(false);
	}
	else 
	if (document.Form1.fathername.value == "")
		{
			alert("Please enter a value for the selected field.");
			document.Form1.fathername.focus();
			return(false);
		}
		else 
		if (document.Form1.lastname.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.lastname.focus();
				return(false);
			}
		else 
		if (document.Form1.maritalstatus.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.maritalstatus.focus();
				return(false);
			}
		else 
		if (document.Form1.gender.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.gender.focus();
				return(false);
			}
			if (document.Form1.nationality.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.nationality.focus();
				return(false);
			}
			if (document.Form1.address.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.address.focus();
				return(false);
			}
			if (document.Form1.city.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.city.focus();
				return(false);
			}
			if (document.Form1.city.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.city.focus();
				return(false);
			}
			if (document.Form1.country.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.country.focus();
				return(false);
			}
			if (document.Form1.mobile1.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.mobile1.focus();
				return(false);
			}
			if (document.Form1.currency.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.currency.focus();
				return(false);
			}
			//deleted loanamoun1
			if (document.Form1.radio[0].checked == false && document.Form1.radio[1].checked == false)
			{
				alert("Please enter a value for the selected field.");
				document.Form1.radio[0].focus();
				return (false);
			}
			else
			{
				if(document.Form1.visa.disabled == false && document.Form1.visa.selectedIndex=="0")
				{
					alert("Please enter a value for the selected field.");
					document.Form1.visa.focus();
					return (false);
				}
				if(document.Form1.mastercard.disabled == false && document.Form1.mastercard.selectedIndex=="0")
				{
					alert("Please enter a value for the selected field.");
					document.Form1.mastercard.focus();
					return (false);
				}
						
			}
}


function Applianceplasticonlinecards_valid(){
	if(document.Form1.type[0].checked == true){
if (document.Form1.companyname.value == "")
	{
		alert("Please enter a value for the selected field.");
		document.Form1.companyname.focus();
		return(false);
	}
	else 
	if (document.Form1.companyaddress.value == "")
		{
			alert("Please enter a value for the selected field.");
			document.Form1.companyaddress.focus();
			return(false);
		}
		else 
		if (document.Form1.cCountry.selectedIndex=="0")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.cCountry.focus();
				return(false);
			}
	} 
		if (document.Form1.firstname.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.firstname.focus();
				return(false);
			}
		else 
		if (document.Form1.lastname.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.lastname.focus();
				return(false);
			}
			if (document.Form1.gender.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.gender.focus();
				return(false);
			}
                        if (document.Form1.emailaddress.value == "")
			{
				alert("Please enter a value for E-mail address field.");
				document.Form1.emailaddress.focus();
				return(false);
			}
			if (document.Form1.branch.selectedIndex=="0")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.branch.focus();
				return(false);
			}
			if (document.Form1.digits.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.digits.focus();
				return(false);
			}
		
		else
		{
						//if (navigator.appName=='Netscape')
				//document.Form1.submit();
return (true);

			//else
				//return (true);

		}

}
function ShowNew(LayerName){
	
	document.getElementById(LayerName).style.display="";
}


function HideNew(LayerName){	
	
	document.getElementById(LayerName).style.display="none";
}


// New function for the Educational Laon 8-9-2009

function EducationalLoan_valid(){	
if (document.Form1.fullname.value == "")
	{
		alert("Please enter a value for the selected field.");
		document.Form1.fullname.focus();
		return(false);
	}
	else 
	 
		if (document.Form1.birthdate.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.birthdate.focus();
				return(false);
			}
		else 
		if (document.Form1.pob.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.pob.focus();
				return(false);
			}
		else 
		if (document.Form1.nationality.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.nationality.focus();
				return(false);
			}
			if (document.Form1.registnum.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.registnum.focus();
				return(false);
			}
			if (document.Form1.maritalstatus.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.maritalstatus.focus();
				return(false);
			}
			if (document.Form1.city.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.city.focus();
				return(false);
			}
			if (document.Form1.city.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.city.focus();
				return(false);
			}
			if (document.Form1.street.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.street.focus();
				return(false);
			}
			if (document.Form1.phonenumber.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.phonenumber.focus();
				return(false);
			}
			if (document.Form1.currency.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.currency.focus();
				return(false);
			}
			if (document.Form1.loanamount1.value == "")
			{
				alert("Please enter a value for the selected field.");
				document.Form1.loanamount1.focus();
				return (false);
			}
		else
		{
			return (true);
			//document.Form1.submit();
		}
	

}

/*** START::Getting the name of the last hidden field in the form ***/

/*
window['CloneApplication']= function() {	



var k = 0; 
var inputHiddens = Array();    

inputArray = document.getElementsByTagName("input");     

for (var index=0; index < inputArray.length; index++){        
	if (inputArray[index].type == 'hidden')            
		k++; 
		inputHiddens[k] = inputArray[index];
	}
	//alert(k);
	//alert (inputHiddens[k].id);

// **** END::Getting the name of the last hidden field in the form *****

var c=document.forms[0].elements.length;

for(i=0; i<document.forms[0].elements.length; i++){
    
	   document.forms[0].elements[i].setAttribute("value", document.forms[0].elements[i].value);
   }
	
	eval('document.Form1.'+inputHiddens[k].id+'.setAttribute("value", document.getElementById("Application").innerHTML)');
   	document.getElementById(inputHiddens[k].id).value = document.getElementById("Application").innerHTML;
}
*/