<!--//

 self.name = "main"

// pop-up function
var newWin = null;

// closeWin
function closeWin(newWin) {
	if (newWin != null){
		if(!newWin.close)
			newWin.close();
		}
}

// Focus
function focusWin(newWin){
	if (newWin != null){
		if(!newWin.focus)
			newWin.focus();
	}
}

function popUp(strURL,strType,strHeight,strWidth) {
if (newWin != null && !newWin.closed) {
	newWin.focus();
	}
var strOptions="";
if (strType=="console") {
	strOptions="scrollbars,resizable,height="+strHeight+",width="+strWidth;
	}
if (strType=="fixed") {
	strOptions="status,height="+strHeight+",width="+strWidth;
}
if (strType=="elastic") {
	strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
	}
newWin = window.open(strURL,'newWin',strOptions);
newWin.focus();
}

function openCheck(destination)
{
	var target;
	target = '';
	if(window.opener) {
		window.opener.name="main";
		target = "main";
	}
	if (target == "main") {
		window.open(destination, target);
	} else {
		//alert('Same window');
		href.location = destination;
		//return
	}
	
}	

//-->