function Popup(URL,H,W,PageName,Scroll,resize, fullscreen) {
	if (!W)	{	W=100 }
	if (!H)	{	H=100 }
	T = (screen.availHeight/2) - (H/2)
	L = (screen.availWidth/2) - (W/2)  
	fullscreen = fullscreen || 0 ;
	PageName = PageName || "_blank"
	if (!Scroll) {Scroll = 0	}	else Scroll = 1;
	if (!resize) {resize = 0	}	else resize = 1;
	 window.open(URL,  PageName   , "fullscreen="+fullscreen+",toolbar=0,scrollbars="+ Scroll +",location=0,statusbar=0,menubar=0,resizable="+ resize +",width="+W+",height="+H+",left = "+L+",top = "+T);
}
function RunSearch(e,val,force,PATH){
	if(window.event) {
	  keynum = e.keyCode;
	}else if(e.which) {
	  keynum = e.which;
	}
	if(keynum==13 || force ){
		document.location = PATH + "/index.php?Searcher="+val
	}	
}
function GoSearch(SearchOb){
		SearchString = document.getElementById("SearchField_"+SearchOb).value
		document.location = "/index.php?Searcher=" + SearchString
}

function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop];
}