

function HelpWindow() {
    var helpURL = "http://help.studentjobs.gov/index.asp?url=http://www.studentjobs.gov" + window.location.pathname;
    var winhelp = window.open(helpURL,"help","width=575,height=300,scrollbars,resizable");
    winhelp.focus();
}

function ShowJobSearchHelpSection(sectionName) {
    //new help file
    var helpURL = "http://jobsearch.studentjobs.gov/help/Help.aspx?k=" + sectionName;
	var winhelp=window.open(helpURL,'help','width=740,height=600,scrollbars,resizable'); 
	winhelp.focus();
}

function ShowHelpSection(sectionName) {
    //old help file
    var helpURL = "http://help.studentjobs.gov/" + sectionName;
	var winhelp=window.open(helpURL,'help','width=740,height=600,scrollbars,resizable'); 
	winhelp.focus();
} 

function popHelpBookmark(strURLTarget)
{
	var bSecureSite = false;
 
    if (popHelpBookmark.arguments.length > 1) bSecureSite = popHelpBookmark.arguments[1];
	var protocol = (bSecureSite) ? "http:" : "http:";
 
 	var helpURL = protocol + "//www.studentjobs.gov/help/index.asp?ma=" + window.location.pathname +'#' + strURLTarget;
 	var winHelp = window.open(helpURL,"help","width=575,height=300,scrollbars,resizable");
 
 	//if popup killed by a popupkiller ask the user to turn it off
     if(!winHelp){
 		alertPopUpBlockerDetected();
     }
     winHelp.focus();
}
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}
var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		home_over = newImage("http://media.newjobs.com/opm/www/studentjobs/home/home_over.gif");
		search_over = newImage("http://media.newjobs.com/opm/www/studentjobs/home/search_over.gif");
		my_over = newImage("http://media.newjobs.com/opm/www/studentjobs/home/my_over.gif");
		agency_over = newImage("http://media.newjobs.com/opm/www/studentjobs/home/agency_over.gif");
		preloadFlag = true;
	}
}


//Break out of frames
if (top.location != location) {
	top.location.href = document.location.href;
}


function delete_cookie(cookie_name)
{
	var cookie_date = new Date();  // current date & time
	cookie_date.setTime(cookie_date.getTime() - 1);
	document.cookie = cookie_name += "=; expires=" + cookie_date.toGMTString();
}