window.addEvent('domready',function(){
  SqueezeBox.assign($$('a[alt^=boxed]'), {
		size: {x: 600, y: 480},
		ajaxOptions: {
			method: 'get' // we use GET for requesting plain HTML
		}
	});


});
var bigstring = " ";


function doesexist(inputValue, inputExpected) {
  var aCharExists=0
  if (inputValue) {
    for (var i=0; i<inputValue.length; i++) {
      if (inputValue.charAt(i) != " ") {
        aCharExists = 1
      }
    }
  }
  if (!aCharExists) {
    bigstring = bigstring += inputExpected += "\n ";
  }
}


function checkemcont() {
	var where_to= confirm("Are You Sure You Want To Submit?");
	if (where_to== false)
	{
		return false
	}
  doesexist(document.contact.company.value, '- Company Name')
  doesexist(document.contact.name.value, '- Contact Name')
  doesexist(document.contact.number.value, '- Phone Number')
  doesexist(document.contact.email.value, '- Email')
  

    if (bigstring != " "){
    alert("Please complete the following fields: \n" + bigstring)
    bigstring = " "
    return false
  }
  return true
}

function checkemplan() {
	var where_to= confirm("Are You Sure You Want To Submit? \n\n * If the Human Verification: field is not entered you will be redirected back to this page.");
	if (where_to== false)
	{
		return false
	}
  doesexist(document.contact.company_name.value, '- Company Name')
  doesexist(document.contact.contact_name.value, '- Contact Name')
  doesexist(document.contact.phone_number.value, '- Phone Number')
  doesexist(document.contact.email.value, '- Email')
  

    if (bigstring != " "){
    alert("Please complete the following fields: \n" + bigstring)
    bigstring = " "
    return false
  }
  return true
}