
function MM_openBrWindow(theURL,winName,features) { //v2.0
  nWin = window.open(theURL,winName,features);
  nWin.focus();
}

function OpenerSet(){
	OP = window.opener.parent;
}

function openers(url){
if (!win_closed(OP)){
	OP.focus();
	OP.location.href=url;
	}
else{
	window.open(url,"newmain","width=800,height=600,location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes")
	}
}


function win_closed(winVar) {
      var ua = navigator.userAgent ;
      if( !!winVar ){
          if( ( ua.indexOf('Gecko')!=-1 || ua.indexOf('MSIE 4')!=-1 )
               && ua.indexOf('Win')!=-1 ){
                return winVar.closed}
          else{ return typeof winVar.document  != 'object'} }
      else{return true}
    }

