/* ############################################################ * Origin: www.voiptalk.org * Name: java.js * Description Main JavaScript file * Autor: Piotr Dziembor, Telappliant Ltd. * Version: 0.8 * Modified: 14:00 22/11/2007 * Copyright: Telappliant Ltd. ############################################################ */ function clearbox(box,defaulttxt) { if(defaulttxt.toLowerCase() == box.value.toLowerCase()) { box.value = ""; } box.onblur = function() { unclearbox(box,defaulttxt);} } function unclearbox(box,defaulttxt) { if(box.value == "") { box.value = defaulttxt; } } function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150') } function MM_openBrWindow(theURL,winName,features) { window.open(theURL,winName,features); } function showtab(thisdiv) { if(document.getElementById(thisdiv).style.display=='none') document.getElementById(thisdiv).style.display='block'; if(thisdiv != 'overview') document.getElementById('overview').style.display='none'; if(thisdiv != 'features') document.getElementById('features').style.display='none'; if(thisdiv != 'supp') document.getElementById('supp').style.display='none'; if(thisdiv != 'reviews') document.getElementById('reviews').style.display='none'; if(thisdiv != 'cartad') document.getElementById('cartad').style.display='none'; } var newWin = null; function closeWin(){ if (newWin != null){ if(!newWin.closed) newWin.close(); } } function popUp(strURL,strType,strHeight,strWidth) { closeWin(); var strOptions=""; if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth; if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth; if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth; if (strType=="scrolled") strOptions="scrollbars,location,height="+strHeight+",width="+strWidth; newWin = window.open(strURL, 'newWin', strOptions); newWin.focus(); } function swapimage(imageid) { if (document.images) { button1 = new Image button2 = new Image button1.src = '/products/images/showsc.gif'; button2.src = '/products/images/hidesc.gif'; if (document.getElementById(imageid).src==button1.src) document.getElementById(imageid).src=button2.src; else document.getElementById(imageid).src=button1.src; } } function openlivechat() { var newWin = null; function closeWin(){ if (newWin != null){ if(!newWin.closed) newWin.close(); } } popUp('livechat.php','console','480','500'); } // Buttons roll-over effect function rolloverbtn(btn_id, btn_src) { document.getElementById(btn_id).src = btn_src; }