
/*this is a collection of standard functions to popup windows
 *it contains:
*newWindowFullScreen(url, name) creates a window the size of the users screen
*newWindow(url,name,height,width) create a popup window that unresizable and has no nav or any of the other features
*newWindowNoScroll(url,name,height,width) create a popup window that unresizable and has no nav or any of the other features and has no scroll bars
 */

//pops up a window that covers the full screen
//and comes with only a title bar
//get passed the url to use and the window name
function newWindowFullScreen(url, name){
	var features = "status=0,toolbar=0,location=0,";

	if(is.ie){
		features = features + "left=0,top=0,width=" + (screen.width-10) + ",height=" + (screen.height-52);
	}else if (is.ns){
		features = features + "screenX=0,screenY=0,outerWidth=" + (screen.width) + ",outerHeight=" + (screen.height);
	}else{
		alert('Netscape or IE 4 or higher required');
		return false;
	}

	var winObj = window.open(url, name, features);
	winObj.focus();
}

//makes the popup window for sending pages
function newWindow(url,name,height,width){
	var features = "status=0,toolbar=0,location=0,scrollbars=1,width="+width+",height="+height;
	
	var winObj = window.open(url, name, features);
	winObj.focus();
}

//makes the popup window for sending pages
function newWindowNoScroll(url,name,height,width){
	var features = "status=0,toolbar=0,location=0,scrollbars=0,width="+width+",height="+height;
	
	var winObj = window.open(url, name, features);
	winObj.focus();
}

