function validateContactus() 
	{
		okay = true;
		if (document.contactus.txtFirstName.value == "" && okay == true)
		{
			alert ("Please enter your First Name");
			document.contactus.txtFirstName.focus();
			okay = false;
			return okay;
		}
		if (document.contactus.txtLastName.value=="" && okay == true  )
		{
		    alert ("Please enter your Last Name");
			document.contactus.txtLastName.focus();
			okay = false;
			return okay;						
		}
        if (document.contactus.txtTitle.value=="" && okay == true  )
		{
		    alert ("Please enter your Title");
			document.contactus.txtTitle.focus();
			okay = false;
			return okay;						
		}
        if (document.contactus.txtCompany.value=="" && okay == true  )
		{
		    alert ("Please enter your Company");
			document.contactus.txtCompany.focus();
			okay = false;
			return okay;						
		}
        var emailPat = /^[A-Za-z0-9_\-]+([.][A-Za-z0-9_\-]+)*[@][A-Za-z0-9_\-]+([.][A-Za-z0-9_\-]+)+$/
		var matchArray = document.contactus.txtEmail.value.match(emailPat);
		if (matchArray == null && okay == true)
		{
			alert ("Please enter your valid Email");
			document.contactus.txtEmail.focus();
			okay = false;
			return okay;						
		}

    if (document.contactus.txtEmail.value=="" && okay == true)
		{
			alert ("Please enter your Email");
			document.contactus.txtEmail.focus();
			okay = false;
			return okay;						
		}
       return okay
    }
    
var xValue="";
 function CheckSpecialCharsNumbers(id)
    {

    var x2 = document.getElementById(id);
    var webValue = x2.value; 
    var flag = 0;              
    var xChars = "1234567890`~!@#$%^'&*()+=[]\\\;/{}|\",:<>?'"; 
    for (var i = 0; i < webValue.length; i++) 
    {  
    if (xChars.indexOf(webValue.charAt(i)) != -1) 
    {     
    if(i==0)
    {
    yValue=""
    }   
    flag = 1;
    break;                                 
    }       
    }
    if(flag == 1)
    {
    x2.value = yValue; 
    return false;     
    } 
    else
    {
    yValue=webValue
    return true;
    }                              
  }  
  
  function CheckLettersNumbers(id)
    {

    var x2 = document.getElementById(id);
    var webValue = x2.value; 
    var flag = 0;              
    var xChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`'~!@#$%^&*()+=[]\\\;/{}|\":<>?"; 
    for (var i = 0; i < webValue.length; i++) 
    {  
    if (xChars.indexOf(webValue.charAt(i)) != -1) 
    {     
    if(i==0)
    {
    yValue=""
    }   
    flag = 1;
    break;                                 
    }       
    }
    if(flag == 1)
    {
    x2.value = yValue; 
    return false;     
    } 
    else
    {
    yValue=webValue
    return true;
    }                              
  }  
  
  function CheckNumbers(id)
    {

    var x2 = document.getElementById(id);
    var webValue = x2.value; 
    var flag = 0;              
    var xChars = "`'~!@#$%^&*()+=[]\\\;/{}|\":<>?"; 
    for (var i = 0; i < webValue.length; i++) 
    {  
    if (xChars.indexOf(webValue.charAt(i)) != -1) 
    {     
    if(i==0)
    {
    yValue=""
    }   
    flag = 1;
    break;                                 
    }       
    }
    if(flag == 1)
    {
    x2.value = yValue; 
    return false;     
    } 
    else
    {
    yValue=webValue
    return true;
    }                              
  }  
  
  