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

if(self==parent)
{
	window.name = "<?=$screen ?>";
}


// 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="/inc/colorwheel.php?fieldname="+fieldname+"&formname="+formname;
  window.open(address,"","width=380,height=410");
}

function setFormColors(color1,color2)
{
 this.newform.colordark.style.background=color1;
 this.newform.colordark.style.color=color1;
 this.newform.colorlight.style.background=color2;
 this.newform.colorlight.style.color=color2;
}
