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 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 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
      }
    }
  });
}


