var bigstring = " ";

function shake(n) 
{
	if (self.moveBy) 
	{
		for (i = 10; i > 0; i--) 
		{
			for (j = n; j > 0; j--) 
			{
				self.moveBy(0,i);
				self.moveBy(i,0);
				self.moveBy(0,-i);
				self.moveBy(-i,0);
			}
		}
	}
}
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 check_inquiry_1() 
{
  doesexist(document.inquiry_1.company_name.value, '- Which Company')
  doesexist(document.inquiry_1.contact_name.value, '- Your Name')
  doesexist(document.inquiry_1.email.value, '- Your Email')
  doesexist(document.inquiry_1.address1.value, '- Your Address')
  doesexist(document.inquiry_1.city_state_province.value, '- City/State/Province')
  doesexist(document.inquiry_1.zip.value, '- ZIP Code')
  doesexist(document.inquiry_1.phone.value, '- Your Phone Number')
  doesexist(document.inquiry_1.fax.value, '- Your Fax')
  doesexist(document.inquiry_1.delivery.value, '- Required Delivery Date')
  if (bigstring != " ")
  {
    alert("Please fill out the following fields: \n" + bigstring)
    bigstring = " "
    return false
  }
  return true
}
function confirmSubmit()
{
	var agree=confirm("ARE YOU SURE YOU WISH TO SUBMIT THIS DATA?");
	if (agree)
		return true ;
	else
		return false ;
}
