function CountySearchWin(URL) {
	window.open(URL, "county_search", "width=400,height=370,left=" + ((screen.width - 400) / 2) + ",top=" + ((screen.height - 370) / 2 - 40) + ",resizable=0,scrollbars=0,status=0").focus();
}

function Back(){
	history.go(-1)
}

function CountyAndStateSubmit(location){
	if(location = "app")
		document.loc_app.submit();
	else if(location = "ea_profile")
		document.ea_profile.submit();
}

function viewInstructionsWin(){
	window.open("shop_instructions.asp", "instructions", "width=700,height=500,left=" + ((screen.width - 700) / 2) + ",top=" + ((screen.height - 500) / 2 - 40) + ",resizable=1,scrollbars=1,status=0,menubar=1").focus();
}

function viewFormWin(){
	window.open("shop_form.asp", "form", "width=700,height=500,left=" + ((screen.width - 700) / 2) + ",top=" + ((screen.height - 500) / 2 - 40) + ",resizable=1,scrollbars=1,status=0,menubar=1").focus();
}



/**************************************************************
                      START MOUSEOVERS
**************************************************************/

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images) {
		for (var i = 0; i < changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

/**************************************************************
                      END MOUSEOVERS
**************************************************************/














/**************************************************************
                    START ADMIN CHROMLESS WINDOW
**************************************************************/

function mainWin(){
	theURL="../_csSys_IE/_generic/forms/home.asp"
	wname="BES"
	W=(window.screen.width);
	H=(window.screen.height - 29);
	windowREALtit = "BES 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<script language=javaScript type=text/javascript SRC=../_csSys_IE/_generic/include/javascripts.js></script>\n</HEAD>\n'+
			'<frameset border=0 framespacing=0 frameborder=0 rows="100%" onFocus="restore()">\n'+
			'	<frame name=content scrolling=no src="'+theURL+'">\n'+
			'</frameset>\n'+
			'</HTML>'

		splashWin = window.open( "" , wname, "left=0,top=0,menubar=0,resizable=0,scrollbars=0,status=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, "left=0,top=0,menubar=1,resizable=0,scrollbars=0,status=0"+s, true);
	}
	splashWin.focus();
}

/**************************************************************
                    END ADMIN CHROMLESS WINDOW
**************************************************************/