function navon(imgName){document[imgName].src=eval(imgName+"on.src");}
function navoff(imgName){document[imgName].src=eval(imgName+"off.src");}
function Show(sID){document.getElementById(sID).style.display="block";}
function Hide(sID){document.getElementById(sID).style.display="none";}
function isEmpty(obj){if((((obj.replace(/ /g,"")).replace(/\r\n/g,"")).replace(/\r/g,"")).replace(/\n/g,"")=="") return true;else return false;}
function ckDate(obj1,obj2) {
	if (isEmpty(obj1)) return "";
	else if (obj1.search(dateExp) == -1) return " "+obj2+" Format\n";
	else return "";
}
function genemail(user,domain,suffix){document.write('<a href="'+'mailto:'+user+'@'+domain+'.'+suffix+'">'+user+'@'+domain+'.'+suffix+'</a>');}
function genemail2(user,domain,suffix,text){document.write('<a href="'+'mailto:'+user+'@'+domain+'.'+suffix+'">'+text+'</a>');}
function txtCt(obj,maxlimit){if(obj.value.length>maxlimit)obj.value=obj.value.substring(0,maxlimit);}
var dateExp = /^(0[1-9]|[1-9]|1[012])\/(3[01]|0[1-9]|[1-9]|[12]\d)\/\d{4}/;
var emailExp = /^([a-zA-Z0-9._-]+)@([a-zA-Z0-9-])+(\.[a-zA-Z0-9-]+)+$/;
var docexts=new Array("doc","txt","pdf");
var imgexts=new Array("jpg","gif","jpeg","png");