function gebi(el){
	return document.getElementById(el);
}

function show_block(id) {
	full_id = 'block_' + id;
	gebi(full_id).style.display == 'inline' ? gebi(full_id).style.display = 'none' : gebi(full_id).style.display = 'inline';
}

function IsNull(string){
	string=string.value
	if (string=="") { return true; } else { return false; }
}

function IsValidEmail(email){
	if (email=="") { return true; }
	var r, re;         //Declare variables.
	re = "[.a-z0-9_-]+@[.a-z0-9_-]+";
	r = email.match(re);   //Attempt match on search string.
	return r == null ? false : true;
}
function enabled (form) {
	var form = document.forms.request;
	form.submit_button.disabled = false;
}
function red (obj) {
	obj.style.borderColor='red';
}
function black (obj) {
	obj.style.borderColor='black';
}

function ShowWnd(Wnd,width,height) {
	Wnd_window=open(Wnd, 'Wnd', 'fullscreen=no,channelmode=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+ width +',height='+height);
	Wnd_window.focus();
	return(false);
}