function ValidateInformation()
{
	//validating firstname
	if (document.myform.firstname.value == "")
	{
		alert("Please enter your first name");
		document.myform.firstname.focus();
		return false;
	}

	//validating lastname
	if (document.myform.lastname.value == "")
	{
		alert("Please enter your last name");
		document.myform.lastname.focus();
		return false;
	}

	//validating company
	if (document.myform.company.value == "")
	{
		alert("Please enter your company name");
		document.myform.company.focus();
		return false;
	}

	//validating designation
	if (document.myform.designation.value == "")
	{
		alert("Please enter your designation");
		document.myform.designation.focus();
		return false;
	}

	//validating country
	if (document.myform.country.value == "")
	{
		alert("Please enter your country");
		document.myform.country.focus();
		return false;
	}

	//validating email
	var mail = document.myform.email.value;
	var message = "Please Enter Valid Email Id";

	if ((mail == '') || (mail.length == mail.lastIndexOf('.')+1) || (mail.indexOf('@') != mail.lastIndexOf('@')))
	{
		alert(message);
		document.myform.email.focus();
		return false;
	}

	if(mail.indexOf('@')==-1 || mail.indexOf('.')==-1 || mail.indexOf('@',0)==0 || mail.indexOf('.',0)==0 || mail.indexOf('@.')!= -1 || mail.indexOf('.@')!=-1 || mail.indexOf('..')!=-1)
	{
		alert(message);
		document.myform.email.focus();
		return false;
	}


	//Validating News Leter Rate
	if ((!document.myform.rating1.checked) && (!document.myform.rating2.checked) && (!document.myform.rating3.checked) && (!document.myform.rating4.checked))
	{
		alert("Please Select News Letter Rate");
		document.myform.rating1.focus();
		return false;
	}


	//validating newarea
	if (document.myform.newarea.value == "")
	{
		alert("Please enter your new area.");
		document.myform.newarea.focus();
		return false;
	}

	//validating suggestion
	if (document.myform.suggestion.value == "")
	{
		alert("Please select your suggestion");
		document.myform.suggestion.focus();
		return false;
	}

	return true;
}

function ValidateNo(NumStr, String)
{				
	for(var Idx=0; Idx<NumStr.length; Idx++)
	{
		var Char = NumStr.charAt(Idx);
		var Match = false;

		for(var Idx1=0; Idx1<String.length; Idx1++)
		{
			if(Char == String.charAt (Idx1))
				 Match = true;
		}

		if (!Match)
			return false;
	}
	return true;
}