function Back(){
	history.go(-1);
}

function Application(URL){
	window.open(URL, "application", "width=700,height=500,left=" + ((screen.width - 700) / 2) + ",top=" + ((screen.height - 500) / 2 - 40) + ",resizable=0,scrollbars=1").focus();
}

function printTopic(URL){
	window.open(URL, "print_topic", "width=600,height=400,left=" + ((screen.width - 600) / 2) + ",top=" + ((screen.height - 400) / 2 - 40) + ",resizable=0,scrollbars=1,menubar=1").focus();
}

function printTip(URL){
	window.open(URL, "print_tip", "width=600,height=400,left=" + ((screen.width - 600) / 2) + ",top=" + ((screen.height - 400) / 2 - 40) + ",resizable=0,scrollbars=1,menubar=1").focus();
}

function printNews(URL){
	window.open(URL, "print_news", "width=600,height=400,left=" + ((screen.width - 600) / 2) + ",top=" + ((screen.height - 400) / 2 - 40) + ",resizable=0,scrollbars=1,menubar=1").focus();
}

function emailTopic(URL){
	window.open(URL, "email_topic", "width=350,height=300,left=" + ((screen.width - 350) / 2) + ",top=" + ((screen.height - 300) / 2 - 40) + ",resizable=0,scrollbars=0").focus();
}

function emailTip(URL){
	window.open(URL, "email_tip", "width=350,height=300,left=" + ((screen.width - 350) / 2) + ",top=" + ((screen.height - 300) / 2 - 40) + ",resizable=0,scrollbars=0").focus();
}

function emailNews(URL){
	window.open(URL, "email_news", "width=350,height=300,left=" + ((screen.width - 350) / 2) + ",top=" + ((screen.height - 300) / 2 - 40) + ",resizable=0,scrollbars=0").focus();
}

function profileWin(){
	window.open("profile.asp", "profile", "width=656,height=500,left=" + ((screen.width - 656) / 2) + ",top=" + ((screen.height - 500) / 2 - 40) + ",resizable=0,scrollbars=1").focus();
}

function pollWin(URL){
	window.open(URL, "poll", "width=220,height=400,left=" + ((screen.width - 220) / 2) + ",top=" + ((screen.height - 400) / 2 - 40) + ",resizable=0,scrollbars=1").focus();
}

function updateProfile(){
	window.open("update_profile.asp", "update_profile", "width=425,height=490,left=" + ((screen.width - 425) / 2) + ",top=" + ((screen.height - 490) / 2 - 40) + ",resizable=0,scrollbars=0").focus();
}

function ReadCookie(cookieName) {
 var theCookie=""+document.cookie;
 var ind=theCookie.indexOf(cookieName);
 if (ind==-1 || cookieName=="") return ""; 
 var ind1=theCookie.indexOf(';',ind);
 if (ind1==-1) ind1=theCookie.length; 
 return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
}
function SetCookie(cookieName,cookieValue,nDays) {
 var today = new Date();
 var expire = new Date();
 if (nDays==null || nDays==0) nDays=1;
 expire.setTime(today.getTime() + 3600000*24*nDays);
 document.cookie = cookieName+"="+escape(cookieValue)
                 + ";expires="+expire.toGMTString();
}










/*******************************************************
					START MOUSEOVERS
*******************************************************/

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) {
	
		// LEFT LINKS
		_1_over = newImage("images/link_member_login-over.gif");
		_2_over = newImage("images/link_highlight_video-over.gif");
		_3_over = newImage("images/link_financial_aid-over.gif");
		_4_over = newImage("images/link_hot_topics-over.gif");
		_5_over = newImage("images/link_colleges-over.gif");
		_6_over = newImage("images/link_ncaa-over.gif");
		_7_over = newImage("images/link_sample_profile-over.gif");
		_8_over = newImage("images/link_ask_question-over.gif");
		_9_over = newImage("images/link_contact_us-over.gif");
		_10_over = newImage("images/link_become_scout-over.gif");
		

		preloadFlag = true;
	}
}

/*******************************************************
					END MOUSEOVERS
*******************************************************/









/**************************************************************
                    START ADMIN CHROMLESS WINDOW
**************************************************************/

function adminWin(){
	theURL="_csSys_IE/_generic/forms/home.asp"
	wname="RecruitAdmin"
	W=(window.screen.width);
	H=(window.screen.height - 29);
	windowREALtit = "Recruit Admin"
	openchromeless(theURL, wname, W, H, windowREALtit)
}

function openchromeless(theURL, wname, W, H, windowREALtit){
	var windowW = W;
	var windowH = H;
	
	var windowX = 0;	var windowY = 0;

//	H=H+20+2;
//	W=W+2;

	s = ",width="+W+",height="+H;

	if(navigator.userAgent.toLowerCase().indexOf("win")!=-1){
		var chromeFRMhtml = '<HTML>\n<HEAD>\n<TITLE>'+ windowREALtit +'</TITLE>\n</HEAD>\n'+
			'<frameset border=0 framespacing=0 frameborder=0 rows="100%">\n'+
			'	<frame name=content scrolling=no src="'+theURL+'">\n'+
			'</frameset>\n'+
			'</HTML>'

		splashWin = window.open( "" , wname, "fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0"+s);

		splashWin.resizeTo( Math.ceil( W )       , Math.ceil( H ) );
		splashWin.moveTo  ( Math.ceil( windowX ) , Math.ceil( windowY ) );

		splashWin.document.open();
		splashWin.document.write(chromeFRMhtml);
		splashWin.document.close();
	}
	else{
		var splashWin = window.open(theURL, wname, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1"+s, true);
	}
	splashWin.focus();
}

/**************************************************************
                    END ADMIN CHROMLESS WINDOW
**************************************************************/