/*validation*/
String.prototype.classExists=function(tC){var rE=new RegExp("(^| )"+tC+"\W*");if(rE.test(this)){return true;}return false;}
function validateForm(form){var ms="";var c=0;var lb=form.getElementsByTagName("label");for(i=0;i<lb.length;i++){if(lb[i].className.classExists("required")){var input=document.getElementById(lb[i].htmlFor);input.style.border="1px solid #999";if(input.value==""){ms=ms+noValue+lb[i].innerHTML+"\n\n";input.style.border="2px solid #c00";if(c==0){input.focus();}c++;}}}if(ms!=""){alert(ms);return(false);}else{return(true);}}
/*print*/
function printPage(){window.focus();window.print();}
