/****************************************************************** * openWin /******************************************************************/ function openWin( windowURL, windowName, windowFeatures ) { return window.open( windowURL, windowName, windowFeatures ) ; } /****************************************************************** * PageChanger /******************************************************************/ function PageChanger(page) { document.location=page; } /****************************************************************** * ProductPageChanger /******************************************************************/ function ProductPageChanger(page) { products.location=page; } /****************************************************************** * changetabs oud!!!! /******************************************************************/ function changetabs(active_tab, tabText) { var tabHeaderId = document.getElementById('tabHeader'); document.getElementById('tab1').className='tab'; document.getElementById('tab2').className='tab'; document.getElementById('tab3').className='tab'; document.getElementById('tab4').className='tab'; document.getElementById('tab5').className='tab'; document.getElementById('tab6').className='tab'; document.getElementById(active_tab).className='tab_sel'; tabHeaderId.innerHTML = tabText; } /****************************************************************** * tab Select /******************************************************************/ function tabSelect(tabText){ var i=1; var tab; document.getElementById('tabHeader').innerHTML = tabText; while(tab = document.getElementById('tab' + i)){ if(tab.innerHTML == tabText){ tab.className='tab_sel'; } else{ if(tab.className) tab.className='tab';} i++;} } /****************************************************************** * tab Show /******************************************************************/ function tabShow(tab){ if( tab.className != 'tab_sel') tab.className = 'tab_over' } /****************************************************************** * tab Hide /******************************************************************/ function tabHide(tab){ if( tab.className != 'tab_sel') tab.className = 'tab' } /*********************************************** * select and focus info table ***********************************************/ function infoSelect(tabText,url,focus){ // alert(document.location); if(document.getElementById("infoFrame").name == 'info'){ tabSelect(tabText); document.getElementById("infoTable").style.display="block"; if (info.location.href == url) info.location.reload(true); else info.location.replace(url); if(focus) document.location.href="#infoTable"; return true;} return false; } /****************************************************************** * kioskrow /******************************************************************/ function kioskrow( recNr, cols) { if((recNr % cols) == 0) document.write(''); } /****************************************************************** * ifWrite /******************************************************************/ function ifWrite( c1, c2, res1, res2) { if(c1.indexOf(c2)>=0) document.write(res1); else document.write(res2); } /****************************************************************** * euroPrijs base on: waarde = n[,dd] /******************************************************************/ function euroPrijs(waarde,type) { var prijs = new String(waarde); if (prijs.indexOf(',') != -1) { if(prijs.indexOf(',') == 0) prijs = '0' + prijs; if(prijs.length - prijs.indexOf(',') == 2) prijs = prijs + '0';} else { prijs = prijs + ',00';} if(type) return('€' + prijs); if(prijs.length < 4){ document.write('n.n.b.');} else{ document.write('€' + prijs);} return; } /****************************************************************** * toggleJa Toggle form value between 'Ja' and '' /******************************************************************/ function toggleJa(form){ if(form.value=='Ja'){ form.value='';} else{ form.value='Ja';}} /****************************************************************** * ShowContent /****************************************************************** * E.W. Fonken(www.ftec-audio.com) * This notice must stay intact for legal use. * Call this function from: * place * in the body of the html ******************************************************************/ function showContent(chk1,chk2) { if (chk1 == chk2) document.getElementById("content").style.display = "block"; else document.location.href = "http://www.ftec-shop.nl"; } /****************************************************************** * vallidLogin /******************************************************************/ function vallidLogin(klantId, cookie){ if (klantId != cookie) { document.location.href = 'http://www.ftec-shop.nl'; return false;} return true; }