
function quote_form(type) {
	return window.open('https://ggisource.com/quote/' + type + '.html', 'quote_' + type, 
		'width=600,height=600,location=no,directories=no,menubar=no,copyhistory=no,resizable=yes,scrollbars=yes');
}

function quote_form_select(form) {
	if (form.selectedIndex < 0) return false;
	if (form.options[form.selectedIndex].value == "") return false;
	win = quote_form(form.options[form.selectedIndex].value);
	form.selectedIndex = 0;
	return win;
}

function $(id) {
	if (document.getElementById)
		return document.getElementById(id);
	if (document.all)
		return document.all[id];
		
	throw "unable to select elements by id";
}

function element_hide(element) {
	element.style['display'] = "none";
}

function element_show(element) {
	element.style['display'] = "block";
}
