
function runFlash(width, height, src, align) {
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="' +width+ '" height="' +height+ '" align="' +align+ '">\n');
  document.write('<param name="movie" value="' +src+ '" />\n');
  document.write('<param name="wmode" value="transparent" />\n');
  document.write('<param name="quality" value="high" />\n');
  document.write('<embed src="' +src+ '" quality="high" wmode="transparent" align="' +align+ '" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' +width+ '" height="' +height+ '">\n');
  document.write('</embed>\n');
  document.write('</object>\n');
}

function validate_specials() {
  if (document.form_specials.specialsEmail.value == "" || document.form_specials.specialsEmail.value.indexOf("@")==-1 || document.form_specials.specialsEmail.value.indexOf(".")==-1 ) {
    alert("Please fill in correct email address");
  }
  else {document.form_specials.submit();}
}

function validate_contact() {
  var vbCRLF = String.fromCharCode(13,10);
  var incomplete = 0, msg = "";
  if ((document.form_contact.contactName.value == "") || (document.form_contact.contactName.value == "Your name")){
    incomplete = 1;
    msg = " - Name" + vbCRLF;
  }
  if (document.form_contact.contactEmail.value == "" || document.form_contact.contactEmail.value.indexOf("@")==-1 || document.form_contact.contactEmail.value.indexOf(".")==-1 ) {
    incomplete = 1;
    msg += " - Email" + vbCRLF;
  }
  if (incomplete == 1) {
    alert("Please fill in missing information:" + vbCRLF + msg);
  }
  else {document.form_contact.submit();}
}


