  whitespaces="!@#$%^&*(){}|?_+=-\,./;<>"
  lowercase="abcdefghijklmnopqrstuvwxyz "
  uppercase="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  numbers="0123456789"
  telephone="0123456789()-"
  s = new Date()
  dd = s.getDay() 
  y=s.getMonth()
  yy=s.getYear()
  mm="469"
  abc="2"

function f()
{
document.form.FirstName.focus()
}

function validate()
{

	if(document.form.FirstName.value=="")
		{
			alert("Enter your FirstName");
			document.form.FirstName.focus()
			document.form.FirstName.select()
			return false;
		}

	if(document.form.LastName.value=="")
		{
			alert("Enter your LastName");
			document.form.LastName.focus()
			document.form.LastName.select()
			return false;
		}

	if(document.form.Organisation.value=="")
		{
			alert("Enter your Organisation");
			document.form.Organisation.focus()
			document.form.Organisation.select()
			return false;
		}

	if(document.form.Designation.value=="")
		{
			alert("Enter your Designation");
			document.form.Designation.focus()
			document.form.Designation.select()
			return false;
		}

        if(document.form.Address1.value=="")
		{
                        alert("Enter your Street Address1");
                        document.form.Address1.focus()
                        document.form.Address1.select()
			return false;
		}

	if(document.form.Address2.value=="")
		{
                        alert("Enter your Street Address2");
                        document.form.Address2.focus()
                        document.form.Address2.select()
			return false;
		}

	if(document.form.City.value=="")
		{
			alert("Enter your City");
			document.form.City.focus()
			document.form.City.select()
			return false;
		}

	
		
	
	if(document.form.Subject.value=="")
		{
			alert("Enter your Subject");
			document.form.Subject.focus()
			document.form.Subject.select()
			return false;
		}

	if(document.form.Enquiry.value=="")
		{
			alert("Enter your Enquiry");
			document.form.Enquiry.focus()
			document.form.Enquiry.select()
			return false;
		}

return true;                    
	
}
function valem(text)
{
	var flag=true;
	var flag1=0
	var flag3
	var l=0
	
	flag=valsplchars(text);
        if(flag==false)
               return false;
       	if(text.substring(0,1)=="@" || text.substring(0,1)=="." || text.substring(text.length-1,text.length)=="@" ||  text.substring(text.length-1,text.length)==".")
		return false;
	for(i=0;i<text.length;i++){
		if(text.substring(i,i+1)=="@"){
			l=i
			flag1=flag1+1
		}
		if(text.substring(i,i+1)==flag3 && text.substring(i,i+1)==".")
			return false;	
		flag3=text.substring(i,i+1)			
	}
	if(flag1!=1)
		return false;
	l=(text.indexOf(".",l))
//	alert(l)	
	if(l==-1)
		return false
	if(l+3>text.length)
		return false;	
        return(flag);   
}
function valsplchars(text)
{	
	
	var flag=true;
	for(j=0;j<text.length;j++)
	{
		if((text.substring(j,j+1)=="!") ||
		   (text.substring(j,j+1)=="~") ||
		   (text.substring(j,j+1)=="#") ||
		   (text.substring(j,j+1)=="$") ||
		   (text.substring(j,j+1)=="%") ||
		   (text.substring(j,j+1)=="^") ||
		   (text.substring(j,j+1)=="'") ||
		   (text.substring(j,j+1)=="&") ||
		   (text.substring(j,j+1)=="*") ||
		   (text.substring(j,j+1)=="(") ||
		   (text.substring(j,j+1)=="|") ||
		   (text.substring(j,j+1)=="=") ||
		   (text.substring(j,j+1)==")") ||
		   (text.substring(j,j+1)=="{") ||
		   (text.substring(j,j+1)=="}") ||
		   (text.substring(j,j+1)=="[") ||
		   (text.substring(j,j+1)=="]") ||
		   (text.substring(j,j+1)==":") ||
		   (text.substring(j,j+1)=="\"") ||
		   (text.substring(j,j+1)==",") ||
		   (text.substring(j,j+1)=="<") ||
		   (text.substring(j,j+1)==">") ||
		   (text.substring(j,j+1)=="?") ||
		   (text.substring(j,j+1)=="/") ||
		   (text.substring(j,j+1)=="\\")||
		   (text.substring(j,j+1)=="+"))
		{
			flag=false;
			break;
		}
	}
	return(flag);
}

function fun()
	{
            var t=window.document.form.venture.length;
	    var x="";
	    for(var p=0;p<t;p++)
		{
                        if(window.document.form.venture[p].checked)
        		{ 	
                        x+=window.document.form.venture[p].value
			}
                        return false
    		}
        return true
	}



 -->
