function onStartSubmit(){FrameBetslip=eval("FrameBetslip");if(FrameBetslip){var e=FrameBetslip.getElem('id','frmMain',0);var cont=FrameBetslip.getElem('id','f_betslipContent',0);if(e&&cont&&cont.value&&cont.value.length>0){e.submit();}}return true;}function PartnerLogout(){location.href='partner.aspx?logout=true';}function BetkingLogoClick(){onStartSubmit();location.href='default.aspx?clearSession=true';}function printPage(){if(window.print)window.print();}function updateBalance(newVal){try{Frame1=eval("parent");}catch(e){}var e;if(Frame1&&Frame1.getElem){e=Frame1.getElem('id','Header_lblKontostand',0);}else{e=getElem('id','Header_lblKontostand',0);}if(e)e.innerHTML=newVal;}function ZweiFrames(URI1,F1,URI2,F2){Frame1=eval("parent."+F1);Frame2=eval("parent."+F2);Frame1.location.href=URI1;Frame2.location.href=URI2;}function alertSize(){var myWidth=0,myHeight=0;if(typeof(window.innerWidth)=='number'){myWidth=window.innerWidth;myHeight=window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){myWidth=document.documentElement.clientWidth;myHeight=document.documentElement.clientHeight;}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){myWidth=document.body.clientWidth;myHeight=document.body.clientHeight;}window.alert('Width = '+myWidth+' Height = '+myHeight+'  document.body.clientHeight '+document.body.clientHeight+' document.body.scrollHeight '+document.body.scrollHeight);}function windowSize(){var browseWidth,browseHeight;alert('FrameBetslipHeight window.innerHeight '+window.innerHeight+' window.outerHeight '+window.outerHeight+' window.innerWidth '+window.innerWidth+' window.outerWidth '+window.outerWidth+' document.body.scrollWidth '+document.body.scrollWidth+' document.body.scrollHeight '+document.body.scrollHeight+' document.body.clientWidth '+document.body.clientWidth+' document.body.clientHeight '+document.body.clientHeight);if(document.layers){browseWidth=window.innerWidth;browseHeight=window.innerHeight;}if(document.all){browseWidth=document.body.clientWidth;browseHeight=document.body.clientHeight;}}function FrameNavHeight(){alertSize();if(document.getElementById&&document.getElementById('FrameNav').contentDocument){var objFrame=document.getElementById('FrameNav');var objDoc=(objFrame.contentDocument)?objFrame.contentDocument:(objFrame.contentWindow)?objFrame.contentWindow.document:(window.frames&&window.frames['FrameNav'])?window.frames['FrameNav'].document:(objFrame.document)?objFrame.document:null;var h=(objDoc.body.scrollHeight?objDoc.body.scrollHeight:objDoc.documentElement.scrollHeight?objDoc.documentElement.scrollHeight:objDoc.scrollHeight?objDoc.scrollHeight:objDoc.body.offsetHeight);objFrame.style.height=h+'px';alert('FrameNavHeight FIREFOX objFrame.style.height = h '+h);}else if(document.all){var objFrame=document.frames('FrameNav');var h=document.frames('FrameNav').document.body.scrollHeight;document.all.FrameNav.style.height=h+16+'px';alert('FrameNavHeight IE document.all.FrameBetslip.style.height = h '+h);}}function FrameBetslipHeight(){if(document.getElementById&&document.getElementById('FrameBetslip').contentDocument){var objFrame=document.getElementById('FrameBetslip');var objDoc=(objFrame.contentDocument)?objFrame.contentDocument:(objFrame.contentWindow)?objFrame.contentWindow.document:(window.frames&&window.frames['FrameBetslip'])?window.frames['FrameBetslip'].document:(objFrame.document)?objFrame.document:null;var h=0;if(objDoc.documentElement&&objDoc.documentElement.clientHeight)h=objDoc.documentElement.clientHeight;else h=(objDoc.body.scrollHeight?objDoc.body.scrollHeight:objDoc.documentElement.scrollHeight?objDoc.documentElement.scrollHeight:objDoc.scrollHeight?objDoc.scrollHeight:objDoc.body.offsetHeight);objFrame.style.height=h+'px';}else if(document.all){var objFrame=document.frames('FrameBetslip');var h=document.frames('FrameBetslip').document.body.scrollHeight;document.all.FrameBetslip.style.height=h+16+'px';}}function FrameContentHeight(){alertSize();if(document.getElementById&&document.getElementById('FrameContent').contentDocument){var objFrame=document.getElementById('FrameContent');var objDoc=(objFrame.contentDocument)?objFrame.contentDocument:(objFrame.contentWindow)?objFrame.contentWindow.document:(window.frames&&window.frames['FrameContent'])?window.frames['FrameContent'].document:(objFrame.document)?objFrame.document:null;var h=(objDoc.body.scrollHeight?objDoc.body.scrollHeight:objDoc.documentElement.scrollHeight?objDoc.documentElement.scrollHeight:objDoc.scrollHeight?objDoc.scrollHeight:objDoc.body.offsetHeight);objFrame.style.height=h+'px';}else if(document.all){var objFrame=document.frames('FrameContent');var h=document.frames('FrameContent').document.body.scrollHeight;document.all.FrameContent.style.height=h+16+'px';}}function findMax(a,b,c){var maxx=0;if(a>maxx)maxx=a;if(b>maxx)maxx=b;if(c>maxx)maxx=c;return maxx;}function LoopHeight(){FrameHeight();window.setTimeout("LoopHeight()",1000);}function FrameHeight(){if((document.getElementById&&document.getElementById('FrameContent').contentDocument)&&(document.getElementById&&document.getElementById('FrameNav').contentDocument)){var objFrameC=document.getElementById('FrameContent');var objFrameB=document.getElementById('FrameBetslip');var objFrameN=document.getElementById('FrameNav');var objDocC=(objFrameC.contentDocument)?objFrameC.contentDocument:(objFrameC.contentWindow)?objFrameC.contentWindow.document:(window.frames&&window.frames['FrameContent'])?window.frames['FrameContent'].document:(objFrameC.document)?objFrameC.document:null;var objDocB=(objFrameB.contentDocument)?objFrameB.contentDocument:(objFrameB.contentWindow)?objFrameB.contentWindow.document:(window.frames&&window.frames['FrameBetslip'])?window.frames['FrameBetslip'].document:(objFrameB.document)?objFrameB.document:null;var objDocN=(objFrameN.contentDocument)?objFrameN.contentDocument:(objFrameN.contentWindow)?objFrameN.contentWindow.document:(window.frames&&window.frames['FrameNav'])?window.frames['FrameNav'].document:(objFrameN.document)?objFrameN.document:null;var hC=650;var hB=0;var hN=0;try{if(objDocC.documentElement&&objDocC.documentElement.clientHeight){hC=objDocC.documentElement.clientHeight;}else hC=(objDocC.body.scrollHeight?objDocC.body.scrollHeight:objDocC.documentElement.scrollHeight?objDocC.documentElement.scrollHeight:objDocC.scrollHeight?objDocC.scrollHeight:objDocC.body.offsetHeight);}catch(e){var msg="hC FireFox JavaScript encountered the following error:\n\n";if(document.all){msg+=e.description;}else{msg+=e;}}try{if(objDocB.documentElement&&objDocB.documentElement.clientHeight){hB=objDocB.documentElement.clientHeight;}else hB=(objDocB.body.scrollHeight?objDocB.body.scrollHeight:objDocB.documentElement.scrollHeight?objDocB.documentElement.scrollHeight:objDocB.scrollHeight?objDocB.scrollHeight:objDocB.body.offsetHeight);}catch(e){var msg="hB JavaScript encountered the following error:\n\n";if(document.all){msg+=e.description;}else{msg+=e;}}try{if(objDocN.documentElement&&objDocN.documentElement.clientHeight){hN=objDocN.documentElement.clientHeight;}else hN=(objDocN.body.scrollHeight?objDocN.body.scrollHeight:objDocN.documentElement.scrollHeight?objDocN.documentElement.scrollHeight:objDocN.scrollHeight?objDocN.scrollHeight:objDocN.body.offsetHeight);}catch(e){var msg="hB FireFox JavaScript encountered the following error:\n\n";if(document.all){msg+=e.description;}else{msg+=e;}}if(hC<650)hC=650;var h=findMax(hC,hB,hN);objFrameC.style.height=h+'px';objFrameB.style.height=hB+'px';objFrameN.style.height=h+'px';}else if(document.all){var hC=0;var hB=0;var hN=0;var error=false;try{hN=document.frames('FrameNav').document.body.scrollHeight;}catch(e){var msg="hN 2 IE JavaScript encountered the following error:\n\n";if(document.all){msg+=e.description;}else{msg+=e;}error=true;}try{hC=document.frames('FrameContent').document.body.scrollHeight;}catch(e){var msg="hC 2 IE JavaScript encountered the following error:\n\n";if(document.all){msg+=e.description;}else{msg+=e;}error=true;}try{hB=document.frames('FrameBetslip').document.body.scrollHeight;}catch(e){var msg="hB 2 IE JavaScript encountered the following error:\n\n";if(document.all){msg+=e.description;}else{msg+=e;}error=true;}if(error){hC=650;hB=250;}var h=findMax(hC,hB,hN);document.all.FrameContent.style.height=h+16+'px';document.all.FrameBetslip.style.height=hB+16+'px';document.all.FrameNav.style.height=h+16+'px';}}function LoopCasinoHeight(){FrameHeightCasino();window.setTimeout("LoopCasinoHeight()",1000);}function FrameHeightCasino(){if((document.getElementById&&document.getElementById('FrameClassicCasino').contentDocument)){var objFrameC=document.getElementById('FrameClassicCasino');var objDocC=(objFrameC.contentDocument)?objFrameC.contentDocument:(objFrameC.contentWindow)?objFrameC.contentWindow.document:(window.frames&&window.frames['FrameContent'])?window.frames['FrameContent'].document:(objFrameC.document)?objFrameC.document:null;var hC=100;try{hC=(objDocC.body.scrollHeight?objDocC.body.scrollHeight:objDocC.documentElement.scrollHeight?objDocC.documentElement.scrollHeight:objDocC.scrollHeight?objDocC.scrollHeight:objDocC.body.offsetHeight);}catch(e){var msg="hC FireFox JavaScript encountered the following error:\n\n";if(document.all){msg+=e.description;}else{msg+=e;}}objFrameC.style.height=hC+'px';}else if(document.all){var objFrameC=document.frames('FrameClassicCasino');var hC=100;var error=false;try{hC=document.frames('FrameClassicCasino').document.body.scrollHeight;}catch(e){var msg="hC 2 IE JavaScript encountered the following error:\n\n";if(document.all){msg+=e.description;}else{msg+=e;}error=true;}document.all.FrameClassicCasino.style.height=hC+16+'px';}}function LoopGamesHeight(){FrameHeightGames();window.setTimeout("LoopGamesHeight()",1000);}function FrameHeightGames(){if((document.getElementById&&document.getElementById('FrameGamesBank').contentDocument)){var objFrameC=document.getElementById('FrameGamesBank');var objDocC=(objFrameC.contentDocument)?objFrameC.contentDocument:(objFrameC.contentWindow)?objFrameC.contentWindow.document:(window.frames&&window.frames['FrameContent'])?window.frames['FrameContent'].document:(objFrameC.document)?objFrameC.document:null;var hC=100;try{hC=(objDocC.body.scrollHeight?objDocC.body.scrollHeight:objDocC.documentElement.scrollHeight?objDocC.documentElement.scrollHeight:objDocC.scrollHeight?objDocC.scrollHeight:objDocC.body.offsetHeight);}catch(e){var msg="hC FireFox JavaScript encountered the following error:\n\n";if(document.all){msg+=e.description;}else{msg+=e;}}objFrameC.style.height=hC+'px';}else if(document.all){var objFrameC=document.frames('FrameGamesBank');var hC=100;var error=false;try{hC=document.frames('FrameGamesBank').document.body.scrollHeight;}catch(e){var msg="hC 2 IE JavaScript encountered the following error:\n\n";if(document.all){msg+=e.description;}else{msg+=e;}error=true;}document.all.FrameGamesBank.style.height=hC+16+'px';}}