function NewWind(theurl,thewidth,theheight,IsScrolling)
{
	var browser = navigator.appName;
	var isNetscape = browser.indexOf("Microsoft") == -1 ? true: false;
	var popup;
	var thetop = 0;
	var theleft = 0;
	var screenH = 640;
	var screenW = 480;
	
	//get the resolution settings
	screenH = screen.availHeight;
	screenW = screen.availWidth;
			
	//get the left spacing based on resolution
	theleft = Math.ceil((screenW - thewidth)/2);
	thetop = Math.ceil((screenH - theheight)/2);
			
	if (isNetscape)
		popup = window.open(theurl, "Popup","top="+thetop+",left="+theleft+",width="+thewidth+",height="+theheight+",toolbar=0,menubar=0,resizable=0,status=0,location=0,directories=0,scrollbars="+IsScrolling);
	else
		popup = window.open(theurl, "Popup","top="+thetop+",left="+theleft+",width="+thewidth+",height="+theheight+",toolbar=0,menubar=0,status=0,location=0,directories=0,scrollbars="+IsScrolling);
}

function is_child_of(parent, child) {
	if( child != null ) {			
		while( child.parentNode ) {
			if( (child = child.parentNode) == parent ) {
				return true;
			}
		}
	}
	return false;
}
function fixOnMouseOut(element, event, document) {
	var current_mouse_target = null;
	if( event.toElement ) {				
		current_mouse_target 			 = event.toElement;
	} else if( event.relatedTarget ) {				
		current_mouse_target 			 = event.relatedTarget;
	}
	if( !is_child_of(element, current_mouse_target) && element != current_mouse_target ) {
		document.getElementById('quickfind').style.display='none';
		document.getElementById('flyout_holder').style.display='none';
	}
}
