/* Email validation */

/*function _check(){
	var Name = document.mainform.Name;
	var Email = document.mainform.Email;
	var ValidEmail = Email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
	
	if (Name.value.length == 0){
		alert("Sorry ! You must enter your Name");
		Name.focus();
		return false;
	}if (! ValidEmail){
		alert("Sorry ! You must enter a valid e-mail address");
		Email.focus();
		return false;
	}else
	return true;
	
}*/


/* centered window popup */

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

/* window popup */

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}