function switchTab(tabNumber) {if (tabNumber != activeTab) {document.getElementById('tab'+activeTab).className = 'inactive_tab';document.getElementById('tab'+activeTab+'_content').style.display = 'none';}document.getElementById('tab'+tabNumber).className = 'active_tab';document.getElementById('tab'+tabNumber+'_content').style.display = 'block';activeTab = tabNumber;}
function resizeWin(width,height) {window.moveTo(((screen.availWidth / 2) - (width / 2) - 10),(screen.availHeight / 2) - (height / 2));window.resizeTo(width,height);}
function launchWin(page,name,height,width,trim,resize,scroll) {var leftvalue = ((screen.availWidth / 2) - (width / 2) - 10);var topvalue = ((screen.availHeight / 2) - (height / 2));if (trim) {OpenWin = this.open(page, name, "top=" + topvalue + ", left=" + leftvalue + ",status=yes,toolbar=yes,menubar=yes,location=yes,scrollbars=" + scroll + ",resizable=" + resize + ",height=" + height + ",width=" + width);} else {OpenWin = this.open(page, name, "top=" + topvalue + ", left=" + leftvalue + ",status=yes,toolbar=no,menubar=no,location=no,scrollbars=" + scroll + ",resizable=" + resize + ",height=" + height + ",width=" + width);}OpenWin.focus();}
function launchProfile(page,name,trim,resize,scroll) {var height = screen.availHeight - 60;var width = screen.availWidth - 5;var leftvalue = 0;var topvalue = 0;if (trim) {OpenWin = this.open(page, name, "top=" + topvalue + ", left=" + leftvalue + ",status=yes,toolbar=yes,menubar=yes,location=yes,scrollbars=" + scroll + ",resizable=" + resize + ",height=" + height + ",width=" + width);} else {OpenWin = this.open(page, name, "top=" + topvalue + ", left=" + leftvalue + ",status=yes,toolbar=no,menubar=no,location=no,scrollbars=" + scroll + ",resizable=" + resize + ",height=" + height + ",width=" + width);}OpenWin.focus();}
function switchTab(tabNumber) {if (tabNumber != activeTab) {document.getElementById('tab'+activeTab).className = 'inactive_tab';document.getElementById('tab'+activeTab+'_content').style.display = 'none';}document.getElementById('tab'+tabNumber).className = 'active_tab';document.getElementById('tab'+tabNumber+'_content').style.display = 'block';activeTab = tabNumber;}
function expandCollapse() {for (var i=0; i<expandCollapse.arguments.length; i++) {var element = document.getElementById(expandCollapse.arguments[i]);element.style.display = (element.style.display == "none") ? "block" : "none";}}
function preloadimages() {var myimages=new Array();for (i=0;i<preloadimages.arguments.length;i++){myimages[i]=new Image();myimages[i].src=preloadimages.arguments[i]}}
function pm_friend(IKI) {location.href="ymsgr:sendIM?"+escape(IKI);};
function launchCalendar(field) {var width = 215;var height = 255;var leftvalue = ((screen.availWidth / 2) - (width / 2) - 10);var topvalue = ((screen.availHeight / 2) - (height / 2));OpenWin = this.open("../modules/module_calendar.cfm?field=" + field, "FieldCalendar", "top=" + topvalue + ", left=" + leftvalue + ",toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,height=" + height + ",width=" + width +"");OpenWin.focus();}
function stoperror(){return true}window.onerror=stoperror
function limitText(limitField, limitCount, limitNum) {if (limitField.value.length > limitNum) {limitField.value = limitField.value.substring(0, limitNum);} else {limitCount.value = limitNum - limitField.value.length;}}
