function goPage(selectName)

{

if (selectName.selectedIndex > 0)

  {

   document.location = selectName[selectName.selectedIndex].value;

  }

}

// PopWindow is a generic Pop-Up Window function.
// Parameters are passed to the function instead of including them in the function.
// Problems? Direct them to Tom Patros.

// Revisions
// 6.15.01 - created --- "url" + "name" parameters must be in single quotes during function call
	// "width" + "height" = size of window (in pixels) to be opened
	// "xdistance" + "ydistance" = distance (in pixels) of window from top left corner of browser window
// 7.7.01 - Added "resize" + "scroll" parameters --- use 1 and 0 in function call to denote "on" + "off" value

function PopWindow(url,name,width,height,xdistance,ydistance,resize,scroll) {
	// OpenString stores all of the parameters to make life a little easier
	var OpenString = "'" + 'toolbar=0,'
	+ 'location=0,'
	+ 'directories=0,'
	+ 'status=0,'
	+ 'menubar=0,'
	+ 'scrollbars=' + scroll + ','
	+ 'resizable=' + resize + ','
	+ 'width=' + width + ','
	+ 'height=' + height + ','
	+ 'left=' + xdistance + ','
	+ 'top=' + ydistance + ','
	+ 'screenX=' + xdistance + ','
	+ 'screenY=' + ydistance + "'";

	// open the window
	window.open(url,name,OpenString);	
}

//R3 SRS 2.11 - Simplified PopWindow function for Flash Video Player
//Date 2/19/2010 - Chris Berg - Comsys
//PopFLV is a simplification of the PopWindow function to allow easier creation of links by Content Authors
function PopFLV(contentid, width, height)
{    
    // OpenString stores all of the parameters to make life a little easier
    var xdistance = (screen.availWidth-width)/2;
    var ydistance = ((screen.availHeight-height)/2)-20;
	var OpenString = "'" + 'toolbar=0,'
	+ 'location=0,'
	+ 'directories=0,'
	+ 'status=0,'
	+ 'menubar=0,'
	+ 'scrollbars=0,'
	+ 'resizable=0,'
	+ 'width=' + width + ','
	+ 'height=' + height + ','
	+ 'left=' + xdistance + ','
	+ 'top=' + ydistance + ','
	+ 'screenX=' + xdistance + ','
	+ 'screenY=' + ydistance + "'";

	// open the window and show the pop up in the fore ground.
    var popupFlv = window.open('/cms/FlashVideoPlayer.aspx?id=' + contentid + "&ydistance=" + ydistance , 'flashVidPlayer', OpenString);    
    popupFlv.focus();
}

// --------------------------------------------------\\
// LinkPopup is a generic Pop-Up Window function, replacing PopWindow for accessiblity concerns and cleaning code
// Parameters are passed to the function instead of including them in the function.
// URL parameter is replaced with "src", which references the link in the DOM, and uses the specified URL

function LinkPopup(src,width,height,xdistance,ydistance,resize,scroll) {

	var OpenString = "'" + 'toolbar=0,'
	+ 'location=0,'
	+ 'directories=0,'
	+ 'status=0,'
	+ 'menubar=0,'
	+ 'scrollbars=' + scroll + ','
	+ 'resizable=' + resize + ','
	+ 'width=' + width + ','
	+ 'height=' + height + ','
	+ 'left=' + xdistance + ','
	+ 'top=' + ydistance + ','
	+ 'screenX=' + xdistance + ','
	+ 'screenY=' + ydistance + "'";
	
	var theWindow = window.open(src.getAttribute('href'),"_blank",OpenString)
	theWindow.focus();
	return theWindow;

}

// Controls the visibility of the associated div tag as per
// supplied dropdown widget and value.
// 2005/03/10 SD
function togglevisibility(dropdown, value, divid) {
    if (dropdown != null) {
	    if(dropdown.value == value) {
	    	document.getElementById("div_" + divid).style.display="block";
	    } else {
		    document.getElementById("div_" + divid).style.display="none";
	    }
	}
}


//the following function launches the eRecruit window containing a frameset housing the PeopleSoft eRecruit servlet.			
function openRecruit(lnFlag) {
	var targetPage
	var recruitWindow
	targetPage = "/utility/recruitingSolutions.aspx?languageFlag=" + lnFlag
	recruitWindow = window.open(targetPage,'eRecruit',"width=668,height=400,top=185,left=40,screenX=0,screenY=0,resizable=1,menubar=0,scrollbars=1,status=1");

}