
// Link example:
//<a href="../../scripts/js/my-pop-up-window.htm" onclick="popUp(this.href,'console',600,600,'windowName');return false;" target="_blank">This is my link</a>
var newWin = null;
function popUp(strURL, strType, strHeight, strWidth, strName) {
if (newWin != null && !newWin.closed)
	newWin.close();  
	var strOptions="";
	if (strType=="console")    
	strOptions="resizable,scrollbars,height="+
		(screen.height-25)+",width="+screen.width;  
	if (strType=="fixed")
		strOptions="height="+      
			strHeight+",width="+strWidth;  
	if (strType=="elastic")
		strOptions="toolbar,menubar,scrollbars,"+
			"resizable,location,height="+      
			strHeight+",width="+strWidth;
	newWin = window.open(strURL, strName, strOptions);  
	newWin.focus();
}


function do_max(){
	window.moveTo(0,0);
	window.resizeTo(screen.width,(screen.height-25))
}
