/*
	PLEASE NOTE: You must include browser.js or popupWin.Focus() will never fire
*/
function openPopUp (theurl,thewindowname,thewidth,theheight){
	/*
		Opens a window with the specified source, window name, height, and width.
		this window WILL have scrollbars, title bar, nav bar, status bar etc.
	*/
	var theargs = "width="+thewidth+",height="+theheight+"top=100,left=100";
	window.open(theurl,thewindowname,theargs);

	if (window.focus){
		if (!(navigator.type == navigator.ie && ((navigator.version >= 4) && (navigator.version < 5)))){
			popupWin.focus();
		}
	}

}   // openPopUp

function openBareWindow(theurl, thewindowname, thewidth, theheight){  
	/*
		Opens a window with the specified url, title, height, and width
		but with NO decorations (scroll bar, toolbar, etc.)
	*/
	popupWin = window.open(theurl,thewindowname,"scrollbars=no,menubar=no,toolbar=no,status=no,top=0,left=0,screenx=0,screeny=0,width=" + thewidth + ",height=" + theheight + ",resizable=no");
	if (window.focus && navigator.type){
		if (!(navigator.type == navigator.ie && ((navigator.version >= 4) && (navigator.version < 5)))){
			popupWin.focus();
		}
	}
}   // openBareWindow



//********************************************************************************************************8
//openWindow is here for backward compatibility. Use openPopup or openBareWindow
function openWindowNobar(theurl) 
{
	popupWin = window.open(theurl,'remote','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=0,left=0,width=660,height=350')
	if (window.focus && navigator.type){
		if (!(navigator.type == navigator.ie && ((navigator.version >= 4) && (navigator.version < 5)))){
			popupWin.focus();
		}
	}
}	//openWindow

function openWindow(theurl) 
{
	popupWin = window.open(theurl,'remote','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,top=0,left=0,width=660,height=350')
	if (window.focus && navigator.type){
		if (!(navigator.type == navigator.ie && ((navigator.version >= 4) && (navigator.version < 5)))){
			popupWin.focus();
		}
	}
}	//openWindow