// JavaScript Document

// Clear the form input
function clearFields(form) {
	for(i=0; i<form.elements.length; i++) {
		form.elements[i].value = "";
	}
}

// Open a new window
var x = null;

function openWindow(page, h, w) {
	if(x) {x.close();}
	x = window.open(page, "newWindow", "resizable=1, HEIGHT=" + h + ", WIDTH=" + w +", scrollbars=no"); 
	x.focus();
}
