function dspPage(pageURL, width, height, opts) { //example: javascript:dspPage('../SPWD/ServingSuggestionsFunSnackIdeasPrint?OpenDocument','600','400','menubar,resizable,scrollbars') var popupWin; wwidth = width || 500; wheight = height || 300; var options = 'width=' + wwidth + ',height=' + wheight + ',' + opts; popupWin=window.open(pageURL,'abWindow', options); } function OpenPopup(pageURL, PopUpURL, width, height, opts) { var options = 'width=' + width + ',height=' + height + ',' + opts; popupWin=window.open(PopUpURL + "?OpenDocument&" + pageURL, 'abWindow', options) } //Form Validation Funcitons function isNum(passedVal){ // Is this a number? if (passedVal == ""){ return false; } for (i=0; i "9"){ return false; } } return true; } function validZip(inZip){ // Is this a valid zip code? if (inZip == ""){ return false; } if(!isNum(inZip)){ return false; } if(inZip.length < 5) { return false; } return true; } function validEmail(email){ // Validate Email Address invalidChars = " /:,;"; if(email == ""){ return false; } for(i=0; i email.length){ return false; } return true; } function validPhone(phone) { //Is it blank? if (phone == "") { return false; } //Is it too short? if (phone.length < 10 ) { return false; } return true; } function validSelectField(state) { //Has a value been selected? if (state == "------ Select ------") { return false; } return true; }