var newWin = null; function openWin(url, width, height, scrollbars, top, left) { if ( !newWin ) { makeWin(url, width, height, scrollbars, top, left); } else { if ( newWin.closed ) makeWin( url, width, height, scrollbars, top, left); else { newWin.close(); makeWin( url, width, height, scrollbars, top, left); } } return void(0); } function makeWin(url, width, height, scrollbars, top, left) { var sb = scrollbars ? ",scrollbars=yes" : ""; var t = top ? ",top=" + top : ""; var l = left ? ",left=" + left : ""; url = url.indexOf("http://") > -1 | url.indexOf("https://") > -1 ? url : urlBase + url; newWin = window.open( url, '_popup', 'height=' + height + ',width=' + width + ',location=no,menubar=no,status=no,toolbar=no,resizable=no' + sb + t + l ); } function explode( strFull, strSep, bInclEmpty ) { if ( !strFull || !strSep || strSep.length > strFull.length ) return null; if ( bInclEmpty == null ) bInclEmpty = true; var lastIdx = 0; var newIdx = 0; var aOutput = new Array(); while ( (newIdx = strFull.indexOf( strSep, lastIdx)) > -1 ) { if (strFull.substring( lastIdx, newIdx ).length > 0 || bInclEmpty ) aOutput.push( strFull.substring( lastIdx, newIdx ) ); lastIdx = newIdx + strSep.length; } if ( lastIdx > 0 ) { if (strFull.substring( lastIdx, strFull.length ).length > 0 || bInclEmpty ) { aOutput.push( strFull.substring( lastIdx, strFull.length ) ); } } return (aOutput.length == 0 ? (bInclEmpty ? new Array(strFull) : null) : aOutput); } function getCookie(NameOfCookie) { if(document.cookie.length > 0) { begin = document.cookie.indexOf(NameOfCookie+"="); if(begin != -1) { // our cookie was set. // The value stored in the cookie is returned from the function begin += NameOfCookie.length + 1; end = document.cookie.indexOf(";",begin); if(end == -1) end = document.cookie.length; return unescape(document.cookie.substring(begin,end)); } } return null; // Our cookie was not set. // The value "null" is returned from the function } function trim() { var retVal = this; while ( '' + retVal.charAt(retVal.length-1) == ' ' ) retVal = retVal.substring( 0, retVal.length - 1 ); while ( '' + retVal.charAt(0) == ' ' ) retVal = retVal.substring( 1, retVal.length ); return retVal; } String.prototype.trim = trim; function rightString(fullString, subString) { if (fullString.indexOf(subString) == -1) return ""; else return (fullString.substring(fullString.indexOf(subString)+subString.length, fullString.length)); } function senden(form) { var objForm = document.forms[form]; if (objForm ) objForm.submit(); } function MM_callJS(jsStr) { //v2.0 return eval(jsStr) } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i