	/* Create Regular Expression*/
	var check_Numeric		=/^[0-9]+$/;
	var check_Date			=/^[0-9/-]+$/;
	var check_Numeric_Dot	=/^[.0-9]+$/;
	var check_Strings		=/^[a-zA-Z., ]+$/;
	var check_alpaNumeric	=/^[0-9a-zA-Z.,-, ,+]+$/;
	var check_NumHyp		=/^[0-9-]+$/;
	var check_SpChar		=/^[^!#$%&*()-+=~`]+$/;
//Check to See if field is Empty
function emptyField(textObj)
{	if(textObj.value.length==0) return true; }


//Check to See if field is Numeric
function isNumeric(textObj)
{	if(check_Numeric.test(textObj.value)==false) return true; }

//Check to See if field is Date
function isDate(textObj)
{	if(check_Date.test(textObj.value)==false) return true; }

//Check to See if field is Numeric With Dot
function isNumeric_Dot(textObj)
{	if(check_Numeric_Dot.test(textObj.value)==false) return true; }


//Check to See if field is String
function isString(textObj)
{	if(check_Strings.test(textObj.value)==false) return true; }


//Check to See if field is alphaNumeric
function isAlphaNumeric(textObj)
{   	if(check_alpaNumeric.test(textObj.value)==false) return true; }

//Check to See if field is Numeric with Hypend
function isNumeric_With_Hypend(textObj)
{ if(check_NumHyp.test(textObj.value)==false) return true; }




//Check to Mail-id is Valid or Not
function mailCheck(textObj)
{
	 len=textObj.value.length;                            //Count '@' 
  	 j=0;sum=0;str="";
	 for(i=0+1;i<len+1;i++)
  	 { 
		str= textObj.value.substring(j,i);
		if(str=="@")
		  {sum = sum + 1;}	
		j=i;
	 }

  	 j=0;x=1;str1="";str2="";str_flag="false";      //Count  '.' [DOT]
	 for(i=1;i<len+1;i++)
  	 { 
		str1= textObj.value.substring(j,i);
		x = x+1
		str2= textObj.value.substring(i,x);
		if(str1 =="." && str2==".")
		{str_flag="true"}
		j=i;
	 }


	if(textObj.value.indexOf('.',0) == -1 || textObj.value.indexOf('@',0) == -1) 
	{ mes="Mail-Id is Invalid";   return mes }
	else if(check_SpChar.test(textObj.value)==false)  //Check to See if field is SpecialCharacter
	{mes="Mail-Id is Invalid(Special Char NotAllowed )"; return mes; } 
	else if(sum > 1)
	{mes="Mail-Id is Invalid(One '@'is allowed)"; return mes}
	else if(str_flag=="true")
	{mes="Mail-Id is Invalid"; return mes}
	else
	{return false}

}





//Check WebSite Text
function Dot_Count(textObj)
{ 


	 len=textObj.value.length;
  	 j=0;sum=0;str="";
	 for(i=0+1;i<len+1;i++)
  	 { 
		str= textObj.value.substring(j,i);
		if(str==".")
		  {sum = sum + 1;}	
		j=i;
	 }
	if (sum <2)
	{return true}
	else
	{return false}
	
}
function CheckDot(textObj)
{
	j=0;x=1;str1="";str2="";str_flag="false";      //Count  '.' [DOT]
	for(i=1;i<len+1;i++)
  	 { 
		str1= textObj.value.substring(j,i);
		x = x+1
		str2= textObj.value.substring(i,x);
		if(str1 =="." && str2==".")
		{str_flag="true"}
		j=i;
	 }

	if(str_flag=="true")
	{return true}
	else
	{return false}
}
