function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function openWin(imgObj)
{
	// if( -1 != window.self.location.href.indexOf('localhost') ) base_url = '/mem/www/';
	// else if( -1 != window.self.location.href.indexOf('mmart') ) base_url = '/test/mem/';
	// else base_url = '';
	var sr = imgObj.src;
	//sr2 = sr.substring(0, sr.length-4);
	sr2 = sr.substring(0, sr.length);
	MM_openBrWindow('img.html?img='+sr2+'','image','resizable=yes,width=300,height=300,top=20,left=20');
}
function openWinS(imgObj)
{
	// if( -1 != window.self.location.href.indexOf('localhost') ) base_url = '/mem/www/';
	// else if( -1 != window.self.location.href.indexOf('mmart') ) base_url = '/test/mem/';
	// else base_url = '';
	var sr = imgObj.src;
	//sr2 = sr.substring(0, sr.length-4);
	sr2 = sr.substring(0, sr.length);
	MM_openBrWindow('imgs.html?img='+sr2+'','image','resizable=yes,width=300,height=300,top=20,left=20');
}
function openWinC(imgObj)
{
	// if( -1 != window.self.location.href.indexOf('localhost') ) base_url = '/mem/www/';
	// else if( -1 != window.self.location.href.indexOf('mmart') ) base_url = '/test/mem/';
	// else base_url = '';
	var sr = imgObj.src;
	//sr2 = sr.substring(0, sr.length-4);
	sr2 = sr.substring(0, sr.length);
	MM_openBrWindow('imgc.html?img='+sr2+'','image','resizable=yes,width=300,height=300,top=20,left=20');
}
function open_img_win(imgFile)
{
	MM_openBrWindow('imgc.html?img='+imgFile+'','image','resizable=yes,width=300,height=300,top=270,left=40');
}
function hideHivd()
{
	document.getElementById('hivd').style.visibility = "hidden";
}
