// This javascript function will SHOW and HIDE the selected DIV
function ShowOrHide(show, hide) {
	$(show).setStyle({display: 'block'});
	$(hide).setStyle({display: 'none'});
}

// This javascript function will show or hide the hidden banner
function BannerPop(show, hide) {
	new Effect.toggle(show,'Blind');
	new Effect.toggle(hide,'Blind');
}

// This javascript function will request AJAX
function AjaxRequest(data, target, url) {
	new Ajax.Updater(target, url, {method:'get', parameters: data });
}

// This javascript function will request AJAX  
function AjaxRequest_Form(data, target, url, form) {
	var value = Form.serialize(form);
	var data  = data+'&'+value;
	new Ajax.Updater(target, url, {method:'get', parameters: data });
}

// This javascript will show the hidden DIV upon click
function ShowForm(id, position) {
	$(id).style.display = 'block';
	$(id).style.top = position
	new Effect.Highlight(id);
}

// This javascript function will hide the DIV upon click
function CloseForm(id) {
	new Effect.Fade(id);
}