function showAjaxForm() {
	Lightview.show({
		href: 'common/request_info.php',
		rel: 'ajax',
		options: {
			autosize: false,
			topclose: true,
			ajax: {
				onComplete: function(){
				// once the request is complete we observe the form for a submit
				$('modalform').observe('submit', submitAjaxForm);
				}
			}
		}
	});
}

function showAjaxFormVirtual() {
	Lightview.show({
		href: 'common/request_info_virtualconsultant.php',
		rel: 'ajax',
		options: {
			autosize: false,
			topclose: true,
			ajax: {
				onComplete: function(){
				// once the request is complete we observe the form for a submit
				$('modalform').observe('submit', submitAjaxFormVirtual);
				}
			}
		}
	});
}

function showAjaxFormRapid() {
	Lightview.show({
		href: 'common/request_info_rapidresponse.php',
		rel: 'ajax',
		options: {
			autosize: false,
			topclose: true,
			ajax: {
				onComplete: function(){
				// once the request is complete we observe the form for a submit
				$('modalform').observe('submit', submitAjaxFormRapid);
				}
			}
		}
	});
}

function showAjaxFormChat() {
	Lightview.show({
		href: 'common/request_info_livechat.php',
		rel: 'ajax',
		options: {
			autosize: false,
			topclose: true,
			ajax: {
				onComplete: function(){
				// once the request is complete we observe the form for a submit
				$('modalform').observe('submit', submitAjaxFormChat);
				}
			}
		}
	});
}

function submitAjaxForm(event) {
  // block default form submit
  Event.stop(event);
	  
  Lightview.show({
    href: 'common/request_info.php',
    rel: 'ajax',
    options: {
	  menubar: false,
	  topclose: true,
	  autosize: true,
      ajax: {
        parameters: Form.serialize('modalform') // the parameters from the form
      }
    }
  });
}

function submitAjaxFormVirtual(event) {
  // block default form submit
  Event.stop(event);
	  
  Lightview.show({
    href: 'common/request_info_virtualconsultant.php',
    rel: 'ajax',
    options: {
	  menubar: false,
	  topclose: true,
	  autosize: true,
      ajax: {
        parameters: Form.serialize('modalform') // the parameters from the form
      }
    }
  });
}

function submitAjaxFormRapid(event) {
  // block default form submit
  Event.stop(event);
	  
  Lightview.show({
    href: 'common/request_info_rapidresponse.php',
    rel: 'ajax',
    options: {
	  menubar: false,
	  topclose: true,
	  autosize: true,
      ajax: {
        parameters: Form.serialize('modalform') // the parameters from the form
      }
    }
  });
}

function submitAjaxFormChat(event) {
  // block default form submit
  Event.stop(event);
	  
  Lightview.show({
    href: 'common/request_info_livechat.php',
    rel: 'ajax',
    options: {
	  menubar: false,
	  topclose: true,
	  autosize: true,
      ajax: {
        parameters: Form.serialize('modalform') // the parameters from the form
      }
    }
  });
}

function submitAjaxFormAward(event) {
  // block default form submit
  Event.stop(event);
	  
  Lightview.show({
    href: 'common/award_popup.php',
    rel: 'ajax',
    options: {
	  menubar: false,
	  topclose: true,
	  autosize: true,
      ajax: {
        parameters: Form.serialize('modalform') // the parameters from the form
      }
    }
  });
}


