<!--Function to check the Empty Fields-->
var whitespace = " \t\n\r";
      function isEmpty(s)
      { return ((s == null) || (s.length == 0)) }
       function check (s)
      {   var i;
          if (isEmpty(s)) return true;
          for (i = 0; i < s.length; i++)
           {
           var c = s.charAt(i);
           if (whitespace.indexOf(c) == -1) return false;
           }
         return true;
      }
<!--END OF THE FUNCTION-->


<!--Alpha Numeric with space and certain special characters-->
var spec=/^[a-zA-Z0-9\s\.\:\/\\*\-\$\%\"\'\_\#]*$/
function isLetterOrDigitspec(c)
{
	return spec.test(c)
}
function SpecVal(x,param)
{
	var b=x.length;
	
	if(!first(x,param))
	{
	 return false;
	}
	
	if(b==1)
	{
	alert(param + " is invalid")
	return false;
	}
	for(var j=0;j<b;j++)
	{
		var s=x.substring(j,j+1);
		if(!(isLetterOrDigitspec(s)))
		{
		 alert(param + " is invalid")
		 return false;
		}

	}
	return true;
}
<!--End of the function-->

<!-- first letter alphabet-->
var alphfal=/^[a-zA-Z0-9\.\:\/\\*\-\$\%\"\'\_\#]*$/
function isLetterOrDigitfstal(c)
{
	return alphfal.test(c)
}
function first(xfirst,param)
{
	var b=xfirst.length;
	for(var j=0;j<b;j++)
	{
		var s=xfirst.charAt(0);
		if(!(isLetterOrDigitfstal(s)))
		{
			alert(param + " is invalid - First character cannot be Null")
			return false;
		}
	}
	return true;
}
<!--End of function-->