var IE = document.all?true:false var UserOK //All fields with id filled in are required fields. function cOn(td, color) { if(document.getElementById||(document.all && !(document.getElementById))) { td.style.backgroundColor= color; td.style.cursor = 'pointer'; } } function cOut(td,color) { if(document.getElementById||(document.all && !(document.getElementById))) { td.style.backgroundColor= color; } } //Smooth Resize var timeoutLength = 10; var pixelsPerTick = 20; var originalHeight = 90; function resize(stritem,list) { //status = document.getElementById('content1').offsetHeight; var style = document.getElementById(stritem).style; if (style.display != 'none') { if (document.getElementById(stritem).innerHTML.length>0){ smoothResize1(stritem); } } else { document.getElementById(stritem).style.display = 'block'; var arr = document.getElementById(list).value.split(',') for(var cnt=0;cnt0){ smoothResize2(stritem,originalHeight); //Openklappen } } //status = document.getElementById('content1').offsetHeight; } function smoothResize1(stritem) //Dichtklappen { if ( (parseInt(document.getElementById(stritem).offsetHeight)-pixelsPerTick) <= 0 ) { document.getElementById(stritem).style.display = 'none'; } else { document.getElementById(stritem).style.height = parseInt(document.getElementById(stritem).offsetHeight-pixelsPerTick) + 'px' ; setTimeout("smoothResize1('"+stritem+"')",timeoutLength); } } function smoothResize2(stritem,max) //Openklappen { if ( (document.getElementById(stritem).offsetHeight+pixelsPerTick) >= max ) { document.getElementById(stritem).style.height = max+'px'; } else { document.getElementById(stritem).style.height = document.getElementById(stritem).offsetHeight+pixelsPerTick+'px'; setTimeout("smoothResize2('"+stritem+"',"+max+")",timeoutLength); } } //End smooth Resize function initSIFR() { if(typeof sIFR == "function"){ // header yellow sIFR.replaceElement(named( { sSelector:"h1", sFlashSrc:"http://www.arm-autoleasing.com/flash/h1.swf", sColor:"#FFF200", sWmode:"transparent", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0" } )); // text green sIFR.replaceElement(named( { sSelector:"h2.green", sFlashSrc:"http://www.arm-autoleasing.com/flash/h2.swf", sColor:"#3ED731", sWmode:"transparent", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0" } )); // text black sIFR.replaceElement(named( { sSelector:"h2", sFlashSrc:"http://www.arm-autoleasing.com/flash/h2.swf", sColor:"#333333", sWmode:"transparent", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0" } )); sIFR.replaceElement(named( {sSelector:"h3.pink",sFlashSrc:"http://www.arm-autoleasing.com/flash/h3.swf",sColor:"#E50E89",sWmode:"transparent", nPaddingTop:0,nPaddingBottom:0,sFlashVars:"textalign=left&offsetTop=0"})); sIFR.replaceElement(named( {sSelector:"h3.black",sFlashSrc:"http://www.arm-autoleasing.com/flash/h3.swf",sColor:"#000000",sWmode:"transparent",nPaddingTop:0,nPaddingBottom:0,sFlashVars:"textalign=left&offsetTop=0"})); sIFR.replaceElement(named( {sSelector:"h3.yellow",sFlashSrc:"http://www.arm-autoleasing.com/flash/h3.swf",sColor:"#FFF200",sWmode:"transparent",nPaddingTop:0,nPaddingBottom:0,sFlashVars:"textalign=left&offsetTop=0"})); // white sIFR.replaceElement(named( { sSelector:"h3", sFlashSrc:"http://www.arm-autoleasing.com/flash/h3.swf", sColor:"#FFFFFF", sWmode:"transparent", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0" } )); sIFR.replaceElement(named( {sSelector:"h4.yellow",sFlashSrc:"http://www.arm-autoleasing.com/flash/h4.swf",sColor:"#FFF200",sWmode:"transparent", nPaddingTop:0,nPaddingBottom:0,sFlashVars:"textalign=left&offsetTop=0"})); sIFR.replaceElement(named( {sSelector:"h4",sFlashSrc:"http://www.arm-autoleasing.com/flash/h4.swf",sColor:"#FFFFFF",sWmode:"transparent", nPaddingTop:0,nPaddingBottom:0,sFlashVars:"textalign=left&offsetTop=0"})); }; } function getCheckboxValue(id) { var allInputTags = document.getElementById(id+'_group').getElementsByTagName('INPUT'); for (var c=0; c'+out.replace('','/object-->')+''; output += '<'+'script type="text/javascript">'; output += 'setTimeout("window.print()",2000);'; output += ''; wh.document.writeln(output); wh.document.close(); } function countChars(id,qty) { var obj = document.getElementById(id) obj.onclick=function(){document.getElementById('cntChars').innerHTML = qty - obj.value.length} obj.onkeyup=function(){document.getElementById('cntChars').innerHTML = qty - obj.value.length} document.getElementById('cntChars').innerHTML = qty - obj.value.length } function display(id) { for(i=0;i<10;i++){ if(id == i) { if(document.getElementById('line'+ i)) document.getElementById('line'+ i).style.display='block' }else{ if(document.getElementById('line'+ i)) document.getElementById('line'+ i).style.display='none' } } } function show(id) { if (document.getElementById(id)) { document.getElementById(id).style.display = 'block' } } function hide(id) { if (document.getElementById(id)) { document.getElementById(id).style.display = 'none' } } function showOrHide(id) { if (document.getElementById(id)) { if (document.getElementById(id).style.display == 'none') { show(id); } else { hide(id); } } }