ns4 = (document.layers)?true:false ns6 = (!document.all && document.getElementById)? true:false ie = (document.all)? true:false function sitemap(){ if(ie) { if(document.all['sitemap'].style.visibility == "visible") { document.all['sitemap'].style.visibility = "hidden"; } else { document.all['sitemap'].style.visibility = "visible"; } } else if(ns6) { if(document.getElementById('sitemap').style.visibility == "visible") { document.getElementById('sitemap').style.visibility = "hidden"; } else { document.getElementById('sitemap').style.visibility = "visible"; } } } function downloadpdf(filename){ window.open(filename); } function openPopup(strUrl,strName, intWidth, intHeight, intLeft, intRight){ focusWindow = window.open(strUrl, strName , 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=' + intWidth + ',height=' + intHeight + ',left=' + intLeft + ',top=' + intRight + '\''); } function AJAXFailure() { alert("Can't load data"); } function LoadSalesOrganisation(ObjId) { var lang = "" var params = "id=" + ObjId; $('SalesOrganisation').innerHTML = 'Loading...'; var ajex; if(lang!="") { ajex = new Ajax.Updater({success: 'SalesOrganisation'},'/' + lang + '/ajax_sales.html',{method: 'post', encoding: 'iso-8859-1', contentType: 'text/html',parameters: params, onFailure: AJAXFailure}); } else { ajex = new Ajax.Updater({success: 'SalesOrganisation'},'/ajax_sales.html',{method: 'post', encoding: 'iso-8859-1', contentType: 'text/html',parameters: params, onFailure: AJAXFailure}); } }