var dayArray = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var monthArray = new Array("January","February","March","April","May","June","July","August","September","October","November","December");

function openWindow(url,name,width,height,resizable,scrollbars,statusbar,menubar,toolbar)
{
	var win = (window.name) ? eval(name) : null;
	var optionString = "";
	if (width) optionString += "width=" + width + ",";
	if (height) optionString += "height=" + height + ",";
	if (resizable) optionString += "resizable=" + resizable + ",";
	if (scrollbars) optionString += "scrollbars=" + scrollbars + ",";
	if (statusbar) optionString += "statusbar=" + statusbar + ",";
	if (menubar) optionString += "menubar=" + menubar + ",";
	if (toolbar) optionString += "toolbar=" + toolbar + ",";
	win = window.open(url,name,optionString);
	win.focus();
}


function clearForm(theForm)
{
	for (i=0; i<theForm.elements.length; i++)
	{
	//	alert(theForm.elements[i].type)
		switch (theForm.elements[i].type)
		{
			case "text" :
				theForm.elements[i].value = "";
				break;
			case "textarea" :
				theForm.elements[i].value = "";
				break;
			case "select-one" :
				theForm.elements[i].selectedIndex = 0;
				break;
			case "select-multiple" :
				for (j=0; j<theForm.elements[i].options.length; j++)
					theForm.elements[i].options[j].selected = false;
				break; 
			case "checkbox" :
				theForm.elements[i].checked = false;
				break;
			case "radio" :
				theForm.elements[i].checked = false;
				break;
		}
	}
}

function resetForm(theForm)
{
	theForm.reset();
}

function showPointer(obj)
{
	if (document.all)
		obj.style.cursor = "hand";
	else
		obj.style.cursor = "pointer";
}



