function wPop(theURL,fullScreen,popUp,h,w,bScrollbars) {
	//alert("URL - " + theURL + ", fullScreen - " + fullScreen + ", popUp - " + popUp + ", W - " + w + ", H - " + h);
	if(popUp){
		if(!w){
			w = screen.width/2;
		}
		if(!h){
			h=screen.height/2;
		}
		if(bScrollbars==undefined){
			bScrollbars = 1;
		}
		newPopup=window.open(theURL,"newPopup",'width='+w+',height='+h+',screenX='+((screen.height-h)/2)+',screenY='+((screen.width-w)/2)+',resizable=1, directories=0, fullscreen=0,location=0,menubar=0,scrollbars='+bScrollbars+',status=0,toolbar=0,top='+((screen.height-h)/2)+',left='+((screen.width-w)/2)+'');
		//newPopup=window.open(theURL,"newPopup",'width='+w+',height='+h+',screenX='+((screen.height-h)/2)+',screenY='+((screen.width-w)/2)+',resizable=1, directories=0, fullscreen=0,location=0,menubar=0,scrollbars='+bScrollbars+',status=0,toolbar=0,top='+((screen.height-h)/2)+',left='+((screen.width-w)/2)+'');
		newPopup.focus();
	} else {
		if(fullScreen){
			newFull = window.open(theURL,'newFull','width='+(screen.width - 20)+',height='+(screen.height - 60)+',screenX=10,screenY=0,directories=0,fullscreen=1,location=0,menubar=0,scrollbars=0,status=0,toolbar=0,top=0,left=10');
	 		newFull.focus();
		} else {
			newWindow = window.open(theURL,"newWindow");
			newWindow.focus();
		}
	}
}