// JavaScript Document

//function for checking the subsrcibe feild
function frmchecksubscribe(frm)
{
	var conditiondiplay=true;
	var msgcontent="";
	if(frm.txtsubscribe.value=="")
	{
		msgcontent=msgcontent+"Enter the subscribe Email Address";
	}
	else if(!isValidEmail(frm.txtsubscribe.value))
	{
		msgcontent=msgcontent+"Enter the valid Email Address";
	}	
	
	if(msgcontent!="")
	{
		showmessage_display(msgcontent,"basic",200);
		return false;
	}
	return true;
}

//function check the validation 
function isValidEmail( fieldValue ) {
	if ( /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,7})+$/.test(fieldValue) )
		return true;

	return false;
}

