// pop-up function
var newWin = null;
function closeWin(){
if (newWin != null){
	if(!newWin.closed)
		newWin.close();
	}
}
function popUp(strURL,strType,strHeight,strWidth) {
closeWin();
var strOptions="";
if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
if (strType=="elastic") strOptions="scrollbars,resizable,height="+strHeight+",width="+strWidth;
newWin = window.open(strURL, 'newWin', strOptions);
newWin.focus();
}

//Reload Netscape 4 on resize

function MM_reloadPage(init) {
  if (init==true) with (navigator) {if (document.layers) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

//Framing

if (self != top)
    top.location.replace(self.location);

 if (top.frames.length!=0)

      top.location=self.document.location; 
