// JavaScript Document
var ui={};
Ajax.Responders.register(
  {
    onComplete:function(request,transport,json){ }
  }
);

function fast_submit() {
  if ((Field.getValue('fast_fname')==null) || (Field.getValue('fast_fname')=="")){
	Dialog.alert("Please enter your first name.", {width:300, height:100, okLabel: "close", ok:function(win) {Field.activate('fast_fname');return true;}});
	return false
  }
  if ((Field.getValue('fast_email')==null) || (Field.getValue('fast_email')=="") || (echeck(Field.getValue('fast_email'))==false)){
	Dialog.alert("Please enter your valid email address.", {width:300, height:100, okLabel: "close", ok:function(win) {Field.activate('fast_email');return true;}});
    return false
  }
  var win = new Window({className: "dialog",  width:400, height:320, zIndex: 100, resizable: false, title: "Thank You!", showEffect:Effect.BlindDown, hideEffect: Effect.SwitchOff, draggable:true, wiredDrag: true});
  win.setAjaxContent("/cgi/submit.php?"+Form.serialize("fast"), {}, true, true)
}

function fast_submit2() {
  if ((Field.getValue('fast2_fname')==null) || (Field.getValue('fast2_fname')=="")){
	Dialog.alert("Please enter your first name.", {width:300, height:100, okLabel: "close", ok:function(win) {Field.activate('fast2_fname');return true;}});
	return false
  }
  if ((Field.getValue('fast2_email')==null) || (Field.getValue('fast2_email')=="") || (echeck(Field.getValue('fast2_email'))==false)){
	Dialog.alert("Please enter your valid email address.", {width:300, height:100, okLabel: "close", ok:function(win) {Field.activate('fast2_email');return true;}});
    return false
  }
  var win = new Window({className: "dialog",  width:400, height:320, zIndex: 100, resizable: false, title: "Thank You!", showEffect:Effect.BlindDown, hideEffect: Effect.SwitchOff, draggable:true, wiredDrag: true});
  win.setAjaxContent("/cgi/submit.php?"+Form.serialize("fast2"), {}, true, true)
}

