function popupnr(mylink, windowname, refocus) { var mywin, href; if (typeof(mylink) == 'string') href=mylink; else href=mylink.href; mywin = window.open(href, windowname, 'width=450,height=600,scrollbars=yes'); // if we just opened the window // if (mywin.closed || (! mywin.document.URL) || (mywin.document.URL.indexOf("about") == 0)) // mywin.location=href; //else if (refocus) // mywin.focus(); return false; } function downloading() { if (document.getElementById("downloadlink1") != null) document.getElementById("downloadlink1").innerHTML = "Downloading..."; if (document.getElementById("downloadlink2") != null) document.getElementById("downloadlink2").innerHTML = "Downloading..."; if (document.getElementById("downloadlink3") != null) document.getElementById("downloadlink3").innerHTML = "Downloading..."; if (document.getElementById("downloadlink4") != null) document.getElementById("downloadlink4").innerHTML = "Downloading..."; if (document.getElementById("downloadlink5") != null) document.getElementById("downloadlink5").innerHTML = "Downloading..."; if (document.getElementById("downloadlink6") != null) document.getElementById("downloadlink6").innerHTML = "Downloading..."; } //*** BEGIN LICENSES TAB LOADER *** var loading1 = function(container) { $(container).innerHTML = "
"; } var showlicensetab = function(filename,sect) { if(sect == "standard_tab"){ showtab = "standard"; } else if(sect == "extended_tab"){ showtab = "extended"; } else if(sect == "multiseat_tab"){ showtab = "multiseat"; } var nowtime = new Date(); var secondsnow = nowtime.getSeconds(); //use second to avoid script beeing cache when refresh. IE problem. var url = "details_licensetab_ajax.php"; var params = "filename="+filename+"&showtab="+showtab+"&nocache="+secondsnow; var ajax = new Ajax.Updater("p_imagescontainer",url,{method:"get", parameters: params, onLoading: loading1("p_imagescontainer")}); } var switchtab = function(sect) { $('standard_tab').style.border = '1px solid #cccccc'; $('extended_tab').style.border = '1px solid #cccccc'; $('extended_tab').style.borderLeft = '0px'; $('multiseat_tab').style.border = '1px solid #cccccc'; //$(sect).style.border = '1px solid #cccccc'; $(sect).style.borderBottom = '0px'; showlicensetab('399469',sect); } var buttonover = function(butt) { $(butt).style.background = '#555555'; } var buttonout = function(butt) { $(butt).style.background = '#ffffff'; } document.observe('dom:loaded',function() { switchtab('standard_tab'); }); //*** END LICENSES TAB LOADER ***