// JavaScript Document

var wName;
var currentWindow;
function MM_openBrWindow(theURL,winName,features) { //v2.0
if(!wName){
 	wName= window.open(theURL,winName,features);
	currentWindow=winName;
}else{
	if(wName.closed){
 		wName= window.open(theURL,winName,features);
		return;
	}
	// other url & windows is open
	if(currentWindow!= winName){
		wName.close();
		wName= window.open(theURL,winName,features);
		currentWindow=winName; // change the name only if new window
	}

  }
    wName.focus();
}