// JavaScript Document

function popDisclaimer(url,W,H){
	var posX = (screen.availWidth-W)/2;
	var posY = (screen.availHeight-H)/2;
	var popWin = window.open(url,'popup','statusbar=no,width='+W+',height='+H+',left='+posX+',top='+posY);
	popWin.focus();	
}

function popWinPDF(url,W,H){
	var posX = (screen.availWidth-W)/2;
	var posY = (screen.availHeight-H)/2;
	window.open(url,'popupPDF','statusbar=no,width='+W+',height='+H+',left='+posX+',top='+posY);
}

function isEmail(string) {
    if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
        return true;
    else
        return false;
}

function isProper(string) {
    if (string.search(/^\w+( \w+)?$/) != -1)
        return true;
    else
        return false;
}

function validateForm(){
	if(document.frmSignup.txtName.value == "") {
		alert("Name filed cannet be blank !");
		document.frmSignup.txtName.focus();
		return false;
	}
	if(document.frmSignup.txtEmail.value == "") {
		alert("Email filed cannot be blank !");
		document.frmSignup.txtEmail.focus();
		return false;
	}
   	if (isEmail(frmSignup.txtEmail.value) == false) {
   		alert("Please enter a valid email address.");
      	frmSignup.txtEmail.focus();
      	return false;
	}
	return true;
}

function copyrightCurrYear() {
var curdate = new Date();
var year = curdate.getYear();
document.write(year)
}