\n';
srccde+='\n';
document.GenMLL.gensrc.value=srccde;
// Change ShwMLL-Form-Values
document.ShwMLL.shwlcd.value=document.GenMLL.genlcd.value;
document.ShwMLL.shwpri.value=document.GenMLL.genpri.value;
if (document.GenMLL.gencur.value != "spccur")
document.ShwMLL.shwcur.value=document.GenMLL.gencur.value;
else
document.ShwMLL.shwcur.value=document.GenMLL.genscu.value;
return;
}
function preview ()
{
var prvtyp = document.GenMLL.genit0.value.substr(0,3);
tx00=tx01=tx02=tx10=tx11=tx12=tx20=tx21=tx22='';
if (prvtyp == 'img') {
img=document.GenMLL.gencls.value+'-'+document.GenMLL.genit0.value+'-'+document.GenMLL.genit1.value+'.gif';
chgimg(img,'yes');
}
else {
var qualin = document.GenMLL.genit0.value.substr(3,1);
var pritbl=getpritbl();
tx00 = 'Free '+pritbl[0];
for (var i=1; i <= pritbl.length - 1; i++) {
if (i == pritbl.length - 1) tx00+=' and ';
else tx00+=', ';
tx00+=pritbl[i];
}
tx00 += ' Calculator';
switch(qualin) {
case '1':
tx01=' by ';
tx02='www.scou-t.com';
break;
case '2':
tx12='www.scou-t.com';
break;
case '3':
if (document.GenMLL.genit1.value != 'standard' && cls[0][document.GenMLL.gencls.selectedIndex][0] != 'all')
tx00+=' for your '+ document.GenMLL.gencls.value;
i=j=0;
while(i = 0; i--) {
options[i] = null;
}
}
function setopt(options,t0,t1) {
for (var i = 0; i <= t1.length - 1; i++) {
options[i] = new Option(t0[t1[i]][1],t0[t1[i]][0]);
}
}
function clrsetopt(name) {
if (name == 'gencls' ) {
clropt(document.GenMLL.genpri.options);
clropt(document.GenMLL.genit0.options);
setopt(document.GenMLL.genpri.options,pri[0],pri[1][document.GenMLL.gencls.selectedIndex]);
setopt(document.GenMLL.genit0.options,it0[0],it0[1][document.GenMLL.gencls.selectedIndex]);
}
if (name == 'gencls' || name == 'genit0') {
clropt(document.GenMLL.genit1.options);
setopt(document.GenMLL.genit1.options,it1[0],it1[1][document.GenMLL.genit0.selectedIndex][document.GenMLL.gencls.selectedIndex]);
}
gensrccde();
preview();
}
function chgcur0() {
document.GenMLL.genscu.value = "";
gensrccde();
}
function chgcur1() {
document.GenMLL.gencur.value = "spccur";
gensrccde();
}
function prvgen() {
gensrccde();
preview();
}
function chgimg(img,adr) {
if (adr == 'yes') document.getElementsByTagName("address")[0].firstChild.nodeValue =img;
else document.getElementsByTagName("address")[0].firstChild.nodeValue ='';
// img='http://scou-t.com/en/images/mll/'+img;
if (document.GenMLL.genlcd.value == 'browser')
lcd='en';
else
lcd=document.GenMLL.genlcd.value;
img='../../'+lcd+'/images/mll/'+img;
//alert(img);
window.document.getElementById("prvimg").src = img;
}
//-->
|
Generate your Calc-Link |
Mortgage/ Loan and Leasing Calculator |
|
|