var spellCheckWindow;var notsp=new RegExp("\\S+");var doPopup=true;function checkSpelling(){spellCheckWindow=window.open("vset_spellcheck.jsp?dummy="+new Date().getTime(),"SendMail","width=460,height=225,screenx=150,screeny=150,toolbar=no,resizable=no,scrollbars=no,left=150,top=150");spellCheckWindow.focus()}function imageDown(a){if(document.images){document.images[a].src="../images/"+a+"_down.gif"}}function imageUp(a){if(document.images){document.images[a].src="../images/"+a+".gif"}}function submitAction(a){document.tdForm.submitAction.value=a;document.tdForm.submit();return true}function isEmpty(a){return !notsp.test(a)}function isNumber(a){if(a==null){return false}else{if(isNaN(a)){return false}}return true}function showToolTip(a){openInNewWindow=false;if(openInNewWindow){return overlib(a,FGCOLOR,"#FFFF66",BGCOLOR,"#FFFF66",BORDER,2,CLOSETEXT,'<br><center><img src="../images/trt_close_msg_button.gif" width=60 height=32 border="0"></center>',HAUTO,VAUTO,WIDTH,570,HEIGHT,300)}else{return overlib(a,FGCOLOR,"#FFFFC0",BGCOLOR,"#FFFFC0")}}function showTitleDesc(b,a){return overlib(""+b+"",ABOVE,TEXTCOLOR,"#000000",TEXTSIZE,1,WIDTH,225,HEIGHT,98,BACKGROUND,"../images/tooltipBox3.gif",PADX,26,3,PADY,6,3)}function openPopup(a,c,d){var b=window.open(a,"plimuspopup","width="+d+",height="+c+",screenx="+(screen.width-d)/2+",screeny="+(screen.height-c)/2+",toolbar=no,resizable=yes,scrollbars=no,left="+(screen.width-d)/2+",top="+(screen.height-c)/2);if(b!=null){b.focus()}}function validateMaxLength(c,a){var b=c.value.length;if(b>a){alert("Field length is limited to "+a+" characters.");c.value=c.value.substring(0,a)}}function getDigits(d){var e="0123456789";var b="";var c;for(var a=0;a<d.length;a++){c=d.charAt(a);if(e.indexOf(c)>-1){b+=c}}return b}function resizeImage(a,d,c){var b=$(a).width()-d;var e=$(a).height()-c;if((b>0)&&(b/d>e/c)){$(a).attr("width",d);$(a).attr("width",d);$(a).width(d)}if((e>0)&&(e/c>b/d)){$(a).attr("height",c);$(a).css("height",c);$(a).height(c)}return a};
