function popup(page, ImageWidth) {
	window.open (page, '', 'toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no, width='+ ImageWidth)
;
}


function popupwh(page, ImageWidth, ImageHeight) {
	window.open (page, '', 'toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no, width=' + ImageWidth + ', height=' + ImageHeight)
;
}

function popupwhn(page, ImageWidth, ImageHeight) {
	window.open (page, '', 'toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no, width=' + ImageWidth + ', height=' + ImageHeight)
;
}

function popupcenter(url, width, height){
	var left = (screen.width - width)/2;
	var top = (screen.height - height)/2;
	var params = "width="+width+", height="+height;
		params += ", top="+top+", left="+left;
		params += ", directories=no";
		params += ", location=no";
		params += ", menubar=no";
		params += ", resizable=no";
		params += ", scrollbars=no";
		params += ", status=no";
		params += ", toolbar=no";
		newwin=window.open(url,'', params);
	if (window.focus) {
		newwin.focus()
	}
	return false;
}

function borderit(which,color){
	//if IE 4+ or NS 6+
	if (document.all||document.getElementById){
		which.style.borderColor=color;
	}
}

function BrowsertSize() {
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
		} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			//IE 6+ in 'standards compliant mode'
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			//IE 4 compatible
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
		}
	window.alert( 'Width = ' + myWidth );
//	window.alert( 'Height = ' + myHeight );
}


function FindItFast(URL) {
	parent.MyFrameTwo.document.location.href = URL;
}

function DisableScrollbar()
{ 
      document.documentElement.style.overflowX = ''; 
      document.body.style.overflowX = ''; 
}