
// This file is used to load all the Java Scripts needed

// eMailValidation.js

re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/

function submitIt(myForm) {
if (re.test(myForm.emailaddress.value)) {
   return true
	}
	alert("Invalid eMail address, please check!")
	myForm.emailaddress.focus()
	myForm.emailaddress.select()
	return false
}


// safemail.js

function safemail(name, domain, display) {
displayed=(typeof(display)=="undefined") ? name+"@"+domain : display
document.write('<link rel="author" type="text/html" href=mailto:' + name + '@' + domain + ' title="Author Contact" />');
}


// safemail_meta.js

function safemail_meta(name, domain, display) {
displayed=(typeof(display)=="undefined") ? name+"@"+domain : display
document.write('<meta name=\"reply-to\" content=\"' + name + '@' + domain + ' />');
}


// safemail_link.js

function safemail_link(name, domain, display) {
displayed=(typeof(display)=="undefined") ? name+"@"+domain : display
document.write('<link rel="author" type="text/html" href=mailto:' + name + '@' + domain + ' title="Author Contact"');
}


// resize.js Netscpae 4+ Resize Bug

function MM_reloadPage(init) {
   if (init==true) {if 
((navigator.appName=="Netscape")&&(navigator.parseInt(appVersion)==4)) {
     document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; 
onresize=MM_reloadPage; }}
   else if (navigator.innerWidth!=document.MM_pgW || navigator.innerHeight!=document.MM_pgH) 
location.reload();
}
MM_reloadPage(true);

