var missing= ""; var gotofld = ""; function trim(stringToTrim) { return stringToTrim.replace(/^\s+|\s+$/g,""); } function ltrim(stringToTrim) { return stringToTrim.replace(/^\s+/,""); } function rtrim(stringToTrim) { return stringToTrim.replace(/\s+$/,""); } function ShowHelp( PageName,anchor, docPath ) { var HelpURL = "/" + docPath +"/" + PageName + "?OpenPage#" + anchor; opts = "scrollbars=yes,resizable=yes,width= 500 ,height=320"; popupWin=window.open( HelpURL,'Help', opts); } function checkempty( fieldvalue ) { for (var idx=0; idx 12){errmsg = "Month is not valid. Choose 01 - 12\n"} if(sd < 1){errmsg = errmsg + "Days are not valid. Choose a day greater then 0.\n"} if(errmsg == ""){ if((sm == 4 || sm == 6 || sm == 9 || sm == 11) & sd > 30){errmsg = errmsg + "Days are not valid. Choose 01 - 30\n"}else{ if(sd>31){errmsg = errmsg + "Days are not valid. Choose 01 - 31\n"} } if(sm == 2){ if(sy % 4 > 0 && sd > 28){errmsg = errmsg + "Days are not valid for February. Choose 01 - 28\n"}else{ if(sd > 29){errmsg = errmsg + "Days are not valid for February. Choose 01 - 29\n"} } } } return errmsg; } // ValidDate function