// JavaScript Document
<!--
function clear_init(field) {
// To remove initial display value from a form element
	if (field.className == "initval" ) 
	{
		if (field.value==field.defaultValue) field.value = "";
		field.className = "searchval";
	}
}

function clear_all_inits(inputform) {
// To remove all initial display values before submiting form
	for (var i=0; i<inputform.elements.length; i++)
	{
		clear_init(inputform.elements[i]);
	}
}

function reset_classes(inputform) {
/* This function resets ids when the reset button is pressed
   The value will be reset to the defaultValue automatically */
	for (var i=0; i<inputform.elements.length; i++) 
	{
		if (inputform.elements[i].className == "searchval")
		{
				inputform.elements[i].className="initval";
		}
	}
}

function open_colour_key()
{
window.open('colour_key.html',"_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, resizeable=yes, width=370, height=170, left=400,top=200")
}

function openblank(url){
	window.open(url,"_blank","toolbar=yes, location=yes, scrollbars=yes, directories=yes, status=yes, menubar=yes, resizable=yes, width=800, height=600");
}
-->
