function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//function setClass() 
//{
//	alert('begin');
//	//determine browser type and if IE, set the class
//    var agt=navigator.userAgent.toLowerCase();
//    var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
//	if (is_ie) {
//
//		var obj= document.getElementById(leftcol);
//		alert(obj);
//		obj.class = "menubg";
//
//		//document.all.leftcol.style.class="menubg";
//  }
//}

function pop(url, dat_width, dat_height) {
	myhtml = '<html><head><title>Image enlargement</title>';
	myhtml = myhtml + '<link rel="stylesheet" type="text/css" href="lvcup.css">';
        myhtml = myhtml + '</head><body bgcolor="#FFFFFF" topmargin="0" leftmargin="0">';
        myhtml = myhtml + '<div style="position:absolute; left:0px; top:0px">';
	myhtml = myhtml + '<img src="' + url + '" border="0"> </div>';
        myhtml = myhtml + '</p></body></html>';

	options = "toolbar=0,status=0,menubar=0,scrollbars=0,resizable=1,width=" + dat_width + ",height=" + dat_height; 

	mywindow = window.open('','',options);
	mywindow.document.writeln(myhtml);
	mywindow.document.close();
}

function popcentre(url,name,width,height) {
	var titleBarHeight, windowBorderWidth
	titleBarHeight = 24
	windowBorderWidth = 4

	var screenWidth, screenHeight
	screenWidth = 800
	screenHeight = 600

	if (window.screen) {
		if (window.screen.availWidth) {
			// ok browser has the appropriate properties we need to centre it
			screenWidth = window.screen.availWidth
			screenHeight = window.screen.availHeight
		}
	}

	var windowWidth = windowBorderWidth + width + windowBorderWidth
	var windowHeight = titleBarHeight + height + windowBorderWidth

	var left = (screenWidth - windowWidth) / 2
	var top = (screenHeight - windowHeight) / 2

	window.open(url,name,'left='+left+',top='+top+',screenX='+left+',screenY='+top+',width='+width+',height='+height+',scrollbars=0,resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,copyhistory=0')
}

		
