Вход Регистрация
Файл: gamele.ru/js/credit.js
Строк: 75
<?php
var d,txt,txt2,el_sum,el_us;el_sr;
document;


function 
writeuslov(e){    
    
el_us d.getElementById("cr_uslov");
    
el_sum d.getElementById("cr_sum_hid").value;
    
d.getElementById("cr_srok_hid").value e;    
    if(
el_sum 0){
        switch(
e){
             case 
"0"
                
txt="Сумма кредита: "+(parseInt(el_sum)*parseInt(pl_lvl)*100)+" ER<br>Выберите срок кредита."
                
txt2="";
             break;
             case 
"1"
                
txt="Сумма кредита: "+(parseInt(el_sum)*parseInt(pl_lvl)*100)+" ER<br>Срок кредита: 1 неделя"
                
txt2 "Проценты по кредиту: 10%.<br>Еженедельный платеж: "+Math.round(parseInt(el_sum)*parseInt(pl_lvl)*100*1.1)+" ER.<br>Общая сумма к выплате: "+Math.round(parseInt(el_sum)*parseInt(pl_lvl)*100*1.1)+" ER.<input type=hidden name=post_id value=88><input type=hidden name=act value=1><br><input type=submit class=lbut value=" Взять кредит " >";                
             break;
             case 
"2"
                
txt2 "Проценты по кредиту: 20%.<br>Еженедельный платеж: "+Math.round(parseInt(el_sum)*parseInt(pl_lvl)*100*1.2/2)+" ER.<br>Общая сумма к выплате: "+Math.round(parseInt(el_sum)*parseInt(pl_lvl)*100*1.2)+" ER.<input type=hidden name=post_id value=88><input type=hidden name=act value=1><br><input type=submit class=lbut value=" Взять кредит " >";    
             break;
             case 
"3"
                
txt="Сумма кредита: "+(parseInt(el_sum)*parseInt(pl_lvl)*100)+" ER<br>Срок кредита: 4 недели";
                
txt2 "Проценты по кредиту: 40%.<br>Еженедельный платеж: "+Math.round(parseInt(el_sum)*parseInt(pl_lvl)*100*1.4/4)+" ER.<br>Общая сумма к выплате: "+Math.round(parseInt(el_sum)*parseInt(pl_lvl)*100*1.4)+" ER.<input type=hidden name=post_id value=88><input type=hidden name=act value=1><br><input type=submit class=lbut value=" Взять кредит " >";            
             break;             
             case 
"4"
                
txt="Сумма кредита: "+(parseInt(el_sum)*parseInt(pl_lvl)*100)+" ER<br>Срок кредита: 8 недель"
                
txt2 "Проценты по кредиту: 80%.<br>Еженедельный платеж: "+Math.round(parseInt(el_sum)*parseInt(pl_lvl)*100*1.8/8)+" ER.<br>Общая сумма к выплате: "+Math.round(parseInt(el_sum)*parseInt(pl_lvl)*100*1.8)+" ER.<input type=hidden name=post_id value=88><input type=hidden name=act value=1><br><input type=submit class=lbut value=" Взять кредит " >";
             break;
        }            
        
el_us.innerHTML txt+"<br>"+txt2;
    }
    else{
        switch(
e){
             case 
"0"txt="Выберите сумму и срок кредита."; break;
             case 
"1"txt="Выберите сумму кредита.<br>Срок кредита: 1 неделя"; break;
             case 
"2"txt="Выберите сумму кредита.<br>Срок кредита: 2 недели"; break;
             case 
"3"txt="Выберите сумму кредита.<br>Срок кредита: 4 недели"; break;
             case 
"4"txt="Выберите сумму кредита.<br>Срок кредита: 8 недель"; break;
        }    
        
el_us.innerHTML txt;
    }
}
function 
writesum(e){
    
el_sr d.getElementById("cr_srok_hid").value;
    
d.getElementById("cr_sum_hid").value e;
    
writeuslov(el_sr);
    
}
?>
Онлайн: 0
Реклама