function flash (version, filename, name, width, height, wmode, bgcolor, menu, flashvars) {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+version+"' width='"+width+"' height='"+height+"' id='"+name+"' align='middle'>");
	document.write("<param name='FlashVars' value='"+flashvars+"' />");
	document.write("<param name='allowScriptAccess' value='sameDomain' />");
	document.write("<param name='wmode' value='"+wmode+"' />");
	document.write("<param name='bgcolor' value='"+bgcolor+"' />");
	document.write("<param name='salign' value='lt' />");
	document.write("<param name='movie' value='"+filename+"' /><param name='menu' value='"+menu+"' /><param name='quality' value='high' /><embed src='"+filename+"' wmode='"+wmode+"' menu='true' quality='high' FLashVars='"+flashvars+"' salign='lt' width='"+width+"' height='"+height+"' bgcolor='"+bgcolor+"' name='"+name+"' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}

function validate()
{
var mvdate=document.getElementById("mvdate")
var zipfrom=document.getElementById("zipfrom")
var zipto=document.getElementById("zipto")
var room=document.getElementById("room")
var fullname=document.getElementById("fullname")
var phone=document.getElementById("phone")
var addressfrom=document.getElementById("addressfrom")
var addressto=document.getElementById("addressto")
var commit=document.getElementById("commit")


if (mvdate.value.length!=10)
 {
 mvdate.focus()
 alert("Field Moving date is required...")
 return false
 }
if (zipfrom.value.length<1)
 {
 zipfrom.focus()
 alert("Field Moving from State ZIP is required...")
 return false
 }
if (zipto.value.length<1)
 {
 zipto.focus()
 alert("Field Moving to State ZIP is required...")
 return false
 }
if (room.selectedIndex<1)
 {
 room.focus()
 alert("Field Estimated Move Weight is required...")
 return false
 }
if (fullname.value.length<1)
 {
 fullname.focus()
 alert("Field Full name is required...")
 return false
 }
if (phone.value.length<1)
 {
 phone.focus()
 alert("Field Phone is required...")
 return false
 }
if (email.value.indexOf("@")==-1) 
 {
 email.focus()
 alert("Invalid email address...")
 return false
 }
if (commit.value.length>1)
 {
 if (addressfrom.value.length<1)
  {
  addressfrom.focus()
  alert('Field Address Moving From required')
  return false
  }
 if(addressto.value.length<1)
  {
  addressfrom.focus()
  alert('Field Address Moving To required')
  return false
  }
 }
}
