
function validateQuickquote() 
{
 var okSoFar=true
 with (document.quickquote)
 {

  if (name.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter your name.")
    name.focus()
  }
	
	 if (country.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please select your country")
    country.focus()
  }
  
    var foundAt = email.value.indexOf("@",0)
  if (foundAt < 1 && okSoFar)
  {
    okSoFar = false
    alert ("Please enter a valid email address.")
    email.focus()
  }
  
	if (phone.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter your phone number we can contact to you")
    phone.focus()
  }

	if (job_type.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please select a scope of work")
    job_type.focus()
  }

	 if (project_budget.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter your project budget you can afford them")
    project_budget.focus()
  }
	
  if (okSoFar==true)  submit();
 }
}


function validateWebpackage() 
{
 var okSoFar=true
 with (document.webpackage)
 {

  if (name.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter your name.")
    name.focus()
  }
	
	 if (country.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please select your country")
    country.focus()
  }
  
    var foundAt = email.value.indexOf("@",0)
  if (foundAt < 1 && okSoFar)
  {
    okSoFar = false
    alert ("Please enter a valid email address.")
    email.focus()
  }
  
	if (phone.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter your phone number we can contact to you")
    phone.focus()
  }

	if (package.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please select a kind of package you prefer")
    package.focus()
  }

	 if (project_budget.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter your project budget you can afford them")
    project_budget.focus()
  }
	
  if (okSoFar==true)  submit();
 }
}


function validateGeneral() 
{
 var okSoFar=true
 with (document.general)
 {

  if (name.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter your name.")
    name.focus()
  }
	
	 if (country.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please select your country")
    country.focus()
  }
  
    var foundAt = email.value.indexOf("@",0)
  if (foundAt < 1 && okSoFar)
  {
    okSoFar = false
    alert ("Please enter a valid email address.")
    email.focus()
  }
  
	if (phone.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter your phone number we can contact to you")
    phone.focus()
  }

	 if (message.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter your message or any comments before submitting form")
    message.focus()
  }
	
  if (okSoFar==true)  submit();
 }
}

