function jumpPage(newLoc)
{
	newPage = newLoc.options[newLoc.selectedIndex].value
	if (newPage != "")
	{
		window.location.href = newPage
	}
}


function popupMsg(msg,url) {
	var doit=confirm(msg);
	if (doit)
	{
		window.location=url;
	}
}


// name window



// open new window

function newWindow(newPage,newWidth,newHeight,newLeft,newTop) {
	thisWindowSize = "width=" + newWidth + ",height=" + newHeight + ",left=" + newLeft + ",top=" + newTop + ",scrollbars=yes";
	thisWindow = window.open(newPage, 'newWin', thisWindowSize);
	thisWindow.focus();
}


// pop-up to select color

function pickColor(fieldname,formname)
{
	var address;
	address="/admin/include/colorwheel.php?fieldname="+fieldname+"&formname="+formname;
	window.open(address,"","width=380,height=410");
}

function pickLink(fieldname,formname,type,search)
{
	var address;
	address="/admin/include/linkpicker.php?fieldname="+fieldname+"&formname="+formname+"&type="+type+"&search="+search;
	window.open(address,"","width=550,height=410");
}

function setFormColors(color1,color2)
{
	this.schooldata.rgb_dark.style.background=color1;
	this.schooldata.rgb_dark.style.color=color1;
	this.schooldata.rgb_light.style.background=color2;
	this.schooldata.rgb_light.style.color=color2;
}

function hidedd() {
	document.getElementById('menubox').style.overflow = 'hidden';
}

function showdd() {
	document.getElementById('menubox').style.overflow = 'visible';
}

function delaydd(timeout) {
	hidedd();
	setTimeout('showdd()',timeout);
}