function validateXSS(){var c=document.getElementsByTagName("INPUT");for(var b=0;b<c.length;b++){var a=c[b];var d=true;if(a.type=="text"){if(validateSpecialCharacter(a)){d=false;a.focus();return d}}}return d}function validateXSSTextArea(){var c=document.getElementsByTagName("TEXTAREA");for(var b=0;b<c.length;b++){var a=c[b];var d=true;if(validateSpecialCharacter(a)){d=false;a.focus();return d}}return d}function validateSpecialCharacter(c){var a=new RegExp("[%&<>\"']+");var b=/^(\s{0,2}|\d{0,2})\/(\s{0,2}|\d{0,2})\/(\s{0,4}|\d{0,4})$/;if(b.test(c.value)){return false}else{if(a.test(c.value)){alert("Special character detected in: "+c.value+". Please revise.");return true}else{return false}}};