var IE = document.all?true:false //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; } } function openOverlay(title,url,width,height) { GB_showCenter(title, url, /* optional */ height, width) } function initSIFR() { if(typeof sIFR == "function"){ // header big, grey sIFR.replaceElement(named( { sSelector:"h1.grey", sFlashSrc:"http://www.manwithamission2.com/flash/h1.swf", sColor:"#DFDFDF", sWmode:"transparent", sCase:"upper", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0" } )); // header big, black sIFR.replaceElement(named( { sSelector:"h1", sFlashSrc:"http://www.manwithamission2.com/flash/h1.swf", sColor:"#000000", sWmode:"transparent", sCase:"upper", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0" } )); sIFR.replaceElement(named( { sSelector:"h2", sFlashSrc:"http://www.manwithamission2.com/flash/h1.swf", sColor:"#000000", sWmode:"transparent", sCase:"upper", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=right&offsetTop=0" } )); }; } //Smooth Resize var timeoutLength = 10; var pixelsPerTick = 20; var originalHeight = 105; function resize(stritem,list) { var obj = document.getElementById(stritem); if (obj.style.display != 'none') { if (obj.innerHTML.length>0){ if(document.getElementById(stritem+'_title')) document.getElementById(stritem+'_title').className = 'item' smoothResize1(stritem); } } else { obj.style.display = 'block'; var arr = document.getElementById(list).value.split(',') for(var cnt=0;cnt0){ if(document.getElementById(stritem+'_title')) document.getElementById(stritem+'_title').className = 'header' smoothResize2(stritem,originalHeight); //Openklappen } } } //Dichtklappen function smoothResize1(stritem) { var obj = document.getElementById(stritem) if ( (parseInt(obj.offsetHeight)-pixelsPerTick) <= 0 ) { obj.style.display = 'none'; }else{ obj.style.height = parseInt(obj.offsetHeight-pixelsPerTick) + 'px' ; setTimeout("smoothResize1('"+stritem+"')",timeoutLength); } } //Openklappen function smoothResize2(stritem,max){ var obj = document.getElementById(stritem) if ( (obj.offsetHeight+pixelsPerTick) >= max ) { obj.style.height = max+'px'; }else{ obj.style.height = obj.offsetHeight+pixelsPerTick+'px'; setTimeout("smoothResize2('"+stritem+"',"+max+")",timeoutLength); } } //End smooth Resize function check(v,id,input) { var obj = document.getElementById(input) var rest if(obj.value.indexOf(','+v+',')==-1){ if(obj.value==''){ obj.value=',' } if(obj.value!=''){ obj.value=obj.value+v+','; } document.getElementById(id).src = document.getElementById(id).src.replace('.gif','_o.gif') }else{ obj.value = obj.value.replace(','+v+',',',') if(obj.value.length==1) obj.value='' document.getElementById(id).src = document.getElementById(id).src.replace('_o.gif','.gif') } } function printme() { var objOut = document.getElementById("output"); var out = objOut.innerHTML; var wh = window.open("","wh","width=640px,height=480px,scrollbars=yes"); wh.document.open(); var output = ''; output = ''+output+''+out.replace('','/object-->')+''; output += '<'+'script type="text/javascript">'; output += 'setTimeout("window.print()",2000);'; output += ''; wh.document.writeln(output); wh.document.close(); }