function frmCheck(obj, strType, strComment)
{  
  
	var strReg = ''
	
	if (obj != null)
	{
	    var strObjVal = obj.value;		
	   
	    if (strObjVal != '')
	    {
	        if(strType == 'address')
	        {
	            re = /^[a-zA-Z0-9\s\.\,\-_\&\(\)]+$/;	            
	        }
	        else  if(strType == 'alphanumeric')
	        {
	            re = /^[a-zA-Z0-9&\s.\-_'\/\\]+$/;        
	        }
	        else  if(strType == 'postalcode')
	        {
	            re = /^[a-zA-Z0-9\-\s]+$/;        
	        }
	        else  if(strType == 'phone')
	        {
	            re = /^[01]?[- .]?(\([2-9]\d{2}\)|[2-9]\d{2})[- .]?\d{3}[- .]?\d{4}$/;        
	        }
	        else  if(strType == 'email')
	        {
	          re = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/; 
	          
	        }
	        else  if(strType == 'number')
	        {
	            re = /^[0-9\.\-]+$/;        
	        }
	        else if(strType == 'concatenated_text_area_with_exclamations')
	        {
	            re = /^[a-zA-Z0-9\$\#\&\%\s\@\.\,\-_\?\:\;\!\<\>\/\£]+$/;
	        }
    	    
    	    
	        var result = strObjVal.match(re)	
	       
          //alert(result);
            if(result == null )
            {
                //alert(strComment);
              // obj.style.backgroundColor='#a0c4de';
                obj.focus();
                return false;
            }
	    }
    }
	return true;	
}


function isValidNumericDigit()
{ 
var KeyID = event.keyCode;
if ((KeyID != 36) && (KeyID != 45)  && (KeyID !=46) && ((KeyID <= 47 ) || (KeyID > 57)) )
{
event.keyCode = null;
return false;
}
return true;
}

