// JavaScript Document
function isBlank(s)
{
	  var len,k,flg;
	  flg=true;
	  if(s!=null)
	  {
		len=s.length;
		for(k=0;k<len;k++)
		 {
		  if(s.substring(k,k+1)!=" ")
				flg=false;
		 }
	  }
	 return flg;
}

//Function to Check Valid Email Address
function IsInvalidEmail(EMAIL) 
{
	var name;
	var i;
	invalidChars = " /:,;'`?";

	for (i=0; i<invalidChars.length; i++) 
	{	                         // does it contain any invalid characters?

		badChar = invalidChars.charAt(i);
		if (EMAIL.indexOf(badChar,0) > -1) 
		{
			return true;
		}
	}

	atPos = EMAIL.indexOf("@",1)			// there must be one "@" symbol
	if (atPos == -1) 
	{
		return true;
	}

	if ((atPos + 1) != EMAIL.length)
	{
		if (EMAIL.indexOf("@",atPos+1) != -1) 
		{	// and only one "@" symbol
			return true;
		}
	}

	periodPos = EMAIL.indexOf(".",atPos);
	if (periodPos == -1) 
		{					// and at least one "." after the "@"
		return true;
		}

	if (periodPos+3 > EMAIL.length)	
		{		// must be at least 2 characters after the "."
		return true;
		}
	return false;
}