function Trim(strVal) { var strMatch = strVal.match(/^\s*(\S+(\s+\S+)*)\s*$/); result = (strMatch == null) ? "" : strMatch[1]; return result; } function isEmail(objObject){ var regEmail, strValue; regEmail = /^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/; strValue = objObject.value; if (objObject.value == "") return true; if(! regEmail.test(strValue)){ //objObject.focus(); return false; } return true; } function NewWindow(url,ht,wd,sc,rs,name){ l = (screen.width) ? (screen.width-wd)/2 : 0; t = (screen.height) ? (screen.height-ht)/2 : 0; param = "height=" + ht + ",width=" + wd + ",top=" + t + ",left=" + l + ",location=no,toolbar=no,status=no,menubar=no,scrollbars=" + sc + ",resizable=" + rs + ",copyhistory=no"; oc_infowin=window.open(url,name,param); if (oc_infowin != null){ oc_infowin.opener = self; } oc_infowin.focus(); } //*********************************************************************************************************************** // Image Preload/Restore Cross Browser Functions //*********************************************************************************************************************** function MM_swapImgRestore(){ 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