function validateall()
{
if ((document.form1.name.value=="")||(document.form1.email.value=="")||
(document.form1.city.value=="")||(document.form1.Countries.value=="")||(document.form1.addr.value=="")||(document.form1.phone.value=="")
||(document.form1.mobile.value==""))
{
alert ("You must fill in all of the required .fields! marked with red dot")
return false
}
}

function validatealltwo()
{
if ((document.form1.name.value=="")||(document.form1.email.value=="")||
(document.form1.city.value=="")||(document.form1.Countries.value=="")||(document.form1.company.value=="")||(document.form1.position.value==""))
{
alert ("You must fill in all of the required .fields! marked with red dot")
return false
}
}

function compa()
{
if (document.form1.company.value=="")
{
alert("Please input a company name!")
}
}

function post()
{
if (document.form1.position.value=="")
{
alert("Please input your position!")
}
}

function country()
{
if (document.form1.Countries.value=="")
{
alert("Please select your country")
}
}

function namecheck()
{
if (document.form1.name.value=="")
{
alert("Please input a name!")
}
}

function emailcheck()
{
var string1=document.form1.email.value
if (string1.indexOf("@")==-1)
{
alert("Please input a valid email address!")
}
}

function addrcheck()
{
if (document.form1.addr.value=="")
{
	alert("Please input an address")
}
}

function citycheck()
{
if (document.form1.city.value=="")
{
	alert("Please input a city name")
}
}

function phonenum()
{
if (document.form1.phone.value=="")
{	
	alert("Please input a phone number")
}
}

function mobilenum()
{
if (document.form1.mobile.value=="")
{	
	alert("Please input a mobile number")
}
}
