function validateSupport(frmSupport)
{
	
	
	
	if(trim(frmSupport.txtName.value)=="")
	{
		alert("Please enter your name")
		frmSupport.txtName.select()
		frmSupport.txtName.focus()
		return false
	}		
	if(trim(frmSupport.txtAddress.value)=="")
	{
		alert("Please enter your address")
		frmSupport.txtAddress.select()
		frmSupport.txtAddress.focus()
		return false
	}	
			
	if(isInvalidPhone(trim(frmSupport.txtPhone.value)))
	{
		alert("Phone No. contains invalid characters.Please check")
		frmSupport.txtPhone.select()
		frmSupport.txtPhone.focus()
		return false
	}
	if(trim(frmSupport.txtEMail.value)=="")
	{
		alert("Please enter your E-mail address")
		frmSupport.txtEMail.select()
		frmSupport.txtEMail.focus()
		return false
	}		
	
	if(trim(frmSupport.txtEMail.value)!="")
	{
	 if(isInvalidEMail(trim(frmSupport.txtEMail.value)))
		{
			alert("Email contains invalid characters.Please check")
			frmSupport.txtEMail.select()
			frmSupport.txtEMail.focus()
			return false
		}	
		
		if(!(emailCheck(frmSupport.txtEMail.value)))
		{
		   
			frmSupport.txtEMail.focus()
			return false
		}
		
	}
	
     if(frmSupport.lstProduct.selectedIndex==0)
	{
		alert("Please select a Product")
		frmSupport.lstProduct.focus()
		return false
	}			
	
	
	if(trim(frmSupport.txtMessage.value)=="")
	{
		alert("Please enter your comments")
		frmSupport.txtMessage.select()
		frmSupport.txtMessage.focus()
		return false
	}

}

function validateContact(frmContact)
{
	
	
	
	if(trim(frmContact.txtName.value)=="")
	{
		alert("Please enter your name")
		frmContact.txtName.select()
		frmContact.txtName.focus()
		return false
	}		
	
	
	if(trim(frmContact.txtAddress.value)=="")
	{
		alert("Please enter your address")
		frmContact.txtAddress.select()
		frmContact.txtAddress.focus()
		return false
	}	
	if(isInvalidPhone(trim(frmContact.txtPhone.value)))
	{
		alert("Phone No. contains invalid characters.Please check")
		frmContact.txtPhone.select()
		frmContact.txtPhone.focus()
		return false
	}	
	if(trim(frmContact.txtEMail.value)=="")
	{
		alert("Please enter your E-mail address")
		frmContact.txtEMail.select()
		frmContact.txtEMail.focus()
		return false
	}		
   
	if(trim(frmContact.txtEMail.value)!="")
	{
		if(isInvalidEMail(trim(frmContact.txtEMail.value)))
		{
			alert("Email contains invalid characters.Please check")
			frmContact.txtEMail.select()
			frmContact.txtEMail.focus()
			return false
		}	
		
		if(!(emailCheck(frmContact.txtEMail.value)))
		{
			frmContact.txtEMail.focus()
			return false
		}
	}
	
	if(trim(frmContact.txtMessage.value)=="")
	{
		alert("Please enter your comments")
		frmContact.txtMessage.select()
		frmContact.txtMessage.focus()
		return false
	}

}
function validateDownload(frmDownload)
{
	
	
	
	if(trim(frmDownload.txtName.value)=="")
	{
		alert("Please enter your name")
		frmDownload.txtName.select()
		frmDownload.txtName.focus()
		return false
	}	
	if(trim(frmDownload.txtCompanyName.value)=="")
	{
		alert("Please enter your comapany name")
		frmDownload.txtCompanyName.select()
		frmDownload.txtCompanyName.focus()
		return false
	}			
	
	
	if(trim(frmDownload.txtAddress.value)=="")
	{
		alert("Please enter your adress")
		frmDownload.txtAddress.select()
		frmDownload.txtAddress.focus()
		return false
	}	
	if(isInvalidPhone(trim(frmDownload.txtPhone.value)))
	{
		alert("Phone No. contains invalid characters.Please check")
		frmDownload.txtPhone.select()
		frmDownload.txtPhone.focus()
		return false
	}
	if(trim(frmDownload.txtEMail.value)=="")
	{
		alert("Please enter your E-mail address")
		frmDownload.txtEMail.select()
		frmDownload.txtEMail.focus()
		return false
	}			
	
   
	if(trim(frmDownload.txtEMail.value)!="")
	{
		if(isInvalidEMail(trim(frmDownload.txtEMail.value)))
		{
			alert("Email contains invalid characters.Please check")
			frmDownload.txtEMail.select()
			frmDownload.txtEMail.focus()
			return false
		}	
		
		if(!(emailCheck(frmDownload.txtEMail.value)))
		{
			frmDownload.txtEMail.focus()
			return false
		}
	}
	
	if(trim(frmDownload.txtURL.value)=="")
	{
		alert("Please enter your Company URL")
		frmDownload.txtURL.select()
		frmDownload.txtURL.focus()
		return false
	}		
	if(frmDownload.lstDownload.selectedIndex==0)
	{
		alert("Please select a Software")
		frmDownload.lstDownload.focus()
		return false
	}		
	if(trim(frmDownload.txtMessage.value)=="")
	{
		alert("Please enter your comments")
		frmDownload.txtMessage.select()
		frmDownload.txtMessage.focus()
		return false
	}
	if(trim(frmDownload.txtMessage2.value)=="")
	{
		alert("Please enter your comments")
		frmDownload.txtMessage2.select()
		frmDownload.txtMessage2.focus()
		return false
	}

}


function validateCareer(frmCareer)
{
			
	if(trim(frmCareer.txtName.value)=="")
	{
		alert("Please enter your name")
		frmCareer.txtName.select()
		frmCareer.txtName.focus()
		return false
	}
	if(trim(frmCareer.txtEducation.value)=="")
	{
		alert("Please enter your educaional qualification")
		frmCareer.txtEducation.select()
		frmCareer.txtEducation.focus()
		return false
	}	
	if(trim(frmCareer.txtExperience.value)=="")
	{
		alert("Please enter job experience")
		frmCareer.txtExperience.select()
		frmCareer.txtExperience.focus()
		return false
	}
	 if(frmCareer.txtPost.value=="")
	{
		alert("Please enter a Post")
		frmCareer.txtPost.select()
		frmCareer.txtPost.focus()
		return false
	}						
	if(trim(frmCareer.txtAddress.value)=="")
	{
		alert("Please enter your address")
		frmCareer.txtAddress.select()
		frmCareer.txtAddress.focus()
		return false
	}
	if(isInvalidPhone(trim(frmCareer.txtPhone.value)))
	{
		alert("Phone No. contains invalid characters.Please check")
		frmCareer.txtPhone.select()
		frmCareer.txtPhone.focus()
		return false
	}	
	
	
	if(trim(frmCareer.txtEMail.value)=="")
	{
		alert("Please enter your E-mail address")
		frmCareer.txtEMail.select()
		frmCareer.txtEMail.focus()
		return false
	}		
	
	if(trim(frmCareer.txtEMail.value)!="")
	{
	 
		
		if(!(emailCheck(frmCareer.txtEMail.value)))
		{
		   
			frmCareer.txtEmail.focus()
			return false
		}
	}
	
	if(trim(frmCareer.file.value)=="")
	{
		alert("Please attach your resume")
		frmCareer.txtEMail.select()
		frmCareer.txtEMail.focus()
		return false
	}
	if(trim(frmCareer.txtMessage.value)=="")
	{
		alert("Please enter your comments")
		frmCareer.txtMessage.select()
		frmCareer.txtMessage.focus()
		return false
	}
		

}


function validatePartner(frmPartner)
{
	
	
	
	if(trim(frmPartner.txtName.value)=="")
	{
		alert("Please enter your name")
		frmPartner.txtName.select()
		frmPartner.txtName.focus()
		return false
	}	
	
		
	if(trim(frmPartner.txtAddress.value)=="")
	{
		alert("Please enter your address")
		frmPartner.txtAddress.select()
		frmPartner.txtAddress.focus()
		return false
	}	
	if(trim(frmPartner.txtPhone.value)=="")
	{
		alert("Please enter your phone number")
		frmPartner.txtPhone.select()
		frmPartner.txtPhone.focus()
		return false
	}
	if(isInvalidPhone(trim(frmPartner.txtPhone.value)))
	{
		alert("Phone No. contains invalid characters.Please check")
		frmPartner.txtPhone.select()
		frmPartner.txtPhone.focus()
		return false
	}	
	if(trim(frmPartner.txtEMail.value)=="")
	{
		alert("Please enter your E-mail address")
		frmPartner.txtEMail.select()
		frmPartner.txtEMail.focus()
		return false
	}			
	
   
	if(trim(frmPartner.txtEMail.value)!="")
	{
		if(isInvalidEMail(trim(frmPartner.txtEMail.value)))
		{
			alert("Email contains invalid characters.Please check")
			frmPartner.txtEMail.select()
			frmPartner.txtEMail.focus()
			return false
		}	
		
		if(!(emailCheck(frmPartner.txtEMail.value)))
		{
			frmPartner.txtEMail.focus()
			return false
		}
	}
	
	if(trim(frmPartner.txtQuery.value)=="")
	{
		alert("Please enter your comments")
		frmPartner.txtQuery.select()
		frmPartner.txtQuery.focus()
		return false
	}
	
	if(trim(frmPartner.txtMessage.value)=="")
	{
		alert("Please enter your comments")
		frmPartner.txtMessage.select()
		frmPartner.txtMessage.focus()
		return false
	}
	
}

