// JavaScript Document function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&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 // Dreamweaver's Popup Script function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } // url, width, height, scrollbar function SPop(url, width, height, scroll) { window.open(url,'','width='+width+',height='+height+',menubar=no,scrollbars='+scroll); } /************************************************************ * Link Blur Script onload="allblur()" ************************************************************/ function allblur() { for (i = 0; i < document.links.length; i++) document.links[i].onfocus = document.links[i].blur; } /************************************************************ * Link Blur Script łĄ ************************************************************/ function win_link(url_link) { window.opener.location=url_link; window.close(); } function set_select (p_select, p_value) { for (i = 0; i < p_select.length; i++) { if (p_select[i].value == p_value) p_select.selectedIndex = i; } } function set_radio (p_select, p_value) { for (i = 0; i < p_select.length; i++) { if (p_select[i].value == p_value) p_select[i].checked = true; } } function set_value (p_name, p_value) { p_name.value = p_value; } function set_fous (p_name) { p_name.focus(); } function check_all (the, ischeck, reverse) { for (i = 0; i < the.elements.length; i++) { if (reverse == true) the.elements[i].checked = the.elements[i].checked == true ? false : true; else the.elements[i].checked = ischeck; } } function check_all_in_name (the, ischeck, reverse, name) { for (i = 0; i < the.elements.length; i++) { if (name != the.elements[i].name) continue; if (reverse == true) the.elements[i].checked = the.elements[i].checked == true ? false : true; else the.elements[i].checked = ischeck; } } function check_count_in_name (the, ischeck, name) { selected = 0; for (i = 0; i < the.elements.length; i++) { if (name != the.elements[i].name) continue; if (the.elements[i].checked == ischeck) selected += 1; } return selected; } function GoUrl() { var gourl = this.url[this.url.selectedIndex].value; if (gourl != "") { window.open(gourl, "", ""); } } function on_popup(popupwidth, popupheight, filename, windowname) { Future0 = "fullscreen=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=0,top=0,width=" + popupwidth + ",height=" + popupheight; PopUpWindow0 = window.open(filename, windowname, Future0) PopUpWindow0.focus(); } function jsMoneyMasking(var1) { var sMoney1 = var1.value.replace(/,/g,""), sMoney2 = ""; var tMoney = ""; var i; var j=0; var tLen = 0; tStart = sMoney1.lastIndexOf("."); if (tStart > 0) { sMoney2 = sMoney1.substring(tStart, sMoney1.length); sMoney1 = sMoney1.substring(0, tStart); } tLen = sMoney1.length; if (tLen <= 3 ) return var1.value; for(i=0;i 0) { sMoney2 = sMoney1.substring(tStart, sMoney1.length); sMoney1 = sMoney1.substring(0, tStart); } tLen = sMoney1.length; if (tLen <= 3 ) return var1; for(i=0;i