	function login_focus(el) 
	{ 
	if(el.V) { 
	if (el.value == el.V) { 
	el.value = ''; 
	} 
	} else { 
	el.V = el.value; 
	el.value = ''; 
	} 
	} 
	
function printpage() {
window.print();  
}	
	
function formHandlerMC(markets){
var URL = document.mc.mc.options[document.mc.mc.selectedIndex].value;
window.location.href = URL;
}
function formHandlerMIF(markets){
var URL = document.mif.mif.options[document.mif.mif.selectedIndex].value;
window.location.href = URL;
}
function formHandlerMPS(markets){
var URL = document.mps.mps.options[document.mps.mps.selectedIndex].value;
window.location.href = URL;
}
function formHandlerMI(markets){
var URL = document.mi.mi.options[document.mi.mi.selectedIndex].value;
window.location.href = URL;
}


// This script will check the specified fields for input.
// If the user has not inputed information, an alert box will
// be shown telling them which field hasn't been filled out
// and once 'OK' is clicked, the focus of the form is changed
// to that field.

function formCheck() 
{
  if (document.SubscriptionForm.Email.value == "") 
  {
  alert("Please enter your email address.");
  SubscriptionForm.Email.focus();
  return false;
  }
  
  if (document.SubscriptionForm.Password.value == "") 
  {
  alert("Please provide your password.");
  SubscriptionForm.Password.focus();
  return false;
  }  
  return true;
}

//this is the staying logged in popup
function openNewWin1() {
msgWindow=window.open('content/staying_loggedin.inc' ,'JavaScriptIt','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory= 0,width=250,height=400');
}
function openNewWin2() {
msgWindow=window.open('content/login_jobid.inc' ,'JavaScriptIt','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory= 0,width=250,height=275');
}

function OpenWin(page) {
	  var newwin = window.open (page, "NewWin", "height=600,width=700,top=20,left=20,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0", "Target");
	  newwin.focus();
	}