 
	function setPagefocus(obj) { 
		document.getElementById(obj).focus(); 
	} 

<!--
	function checkEnter(e){ //e is event object passed from function invocation
	var characterCode // literal character code will be stored in this variable
	if(e && e.which){ //if which property of event object is supported (NN4)e = e
		characterCode = e.which //character code is contained in NN4's which property
		}
	else{
		e = event
	characterCode = e.keyCode //character code is contained in IE's keyCode property
		}

	if(characterCode == 13){ //if character code is equal to ascii 13 (if enter key)
		return false //return false to the event handler
		}
	else{
		return true //return true to the event handler
	}	 
	}
	//-->
	<!-- 
		function open_new_window(url)
		{ 
		new_window = window.open(url,'window_name','toolbar=0,menubar=0,resizable=1,dependent=0,status=0,width=350,height=450,left=25,top=25')
		}
		// New window attributes
		// url - the variable for the url of the page in the new window
		//     that is passed by placing it single-quoted in either the link or form
		// window_name - the name of the new window being opened
		// width - width of the new window in pixels
		// height - height of the new window in pixels
		// top - the new widow top will appear xx number of pixels from the top of the screen
		// left - the new widow left margin will appear xx number of pixels from the left of the screen
		
		// The following attributes will suppress the respective window elements
		// when the value is set to zero or if omitted.  When listed or equal to one
		// the window attribute will appear
		// toolbar,menubar,resizable,dependent,status
		// -->
	 <!--
	/****************************************************
		 AUTHOR: WWW.CGISCRIPT.NET, LLC
		 URL: http://www.cgiscript.net
		 Use the code for FREE but leave this message intact.
		 Download your FREE CGI/Perl Scripts today!
		 ( http://www.cgiscript.net/scripts.htm )
	****************************************************/
	var win=null;
	function NewWindow(mypage,myname,w,h,pos,infocus){
	if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
	if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
	else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
	settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=yes";win=window.open(mypage,myname,settings);
	win.focus();}
	// -->
	<!--pop UP GOES HERE	-->		
		// JK Pop up image viewer script- By JavaScriptKit.com
		// Visit JavaScript Kit (http://javascriptkit.com)
		// for free JavaScript tutorials and scripts
		// This notice must stay intact for use
		
		
		function detectexist(obj){
		return (typeof obj !="undefined")
		}
		
		function jkpopimage(imgpath, popwidth, popheight, textdescription){
		var popbackground="#d4cae2" //specify backcolor or background image for pop window
		var windowtitle="Image Window"  //pop window title

		function getpos(){
		leftpos=(detectexist(window.screenLeft))? screenLeft+document.body.clientWidth/2-popwidth/2 : detectexist(window.screenX)? screenX+innerWidth/2-popwidth/2 : 0
		toppos=(detectexist(window.screenTop))? screenTop+document.body.clientHeight/2-popheight/2 : detectexist(window.screenY)? screenY+innerHeight/2-popheight/2 : 0
		if (window.opera){
		leftpos-=screenLeft
		toppos-=screenTop
		}
		}
		
		getpos()
		var winattributes='width='+popwidth+',height='+popheight+',scrollbars=yes,resizable=yes,left='+leftpos+',top='+toppos
		var bodyattribute=(popbackground.indexOf(".")!=-1)? 'background="'+popbackground+'"' : 'bgcolor="'+popbackground+'"'
		if (typeof jkpopwin=="undefined" || jkpopwin.closed)
		jkpopwin=window.open("","",winattributes)
		else{
		//getpos() //uncomment these 2 lines if you wish subsequent popups to be centered too
		//jkpopwin.moveTo(leftpos, toppos)
		jkpopwin.resizeTo(popwidth, popheight+30)
		}
		jkpopwin.document.open()
		jkpopwin.document.write('<html><title>'+windowtitle+'</title><body '+bodyattribute+'><img src="'+imgpath+'" style="margin-bottom: 0.5em"><br>'+textdescription+'</body></html>')
		jkpopwin.document.close()
		jkpopwin.focus()
		}
		
		<!--
		function MM_openBrWindow(theURL,winName,features) { //v2.0
 		 	var winName = window.open(theURL,winName,features);
			
			}
		//-->
		
