var loginLS;
function NavTop() {
	if (self==top || top.location.href.indexOf('index.aspx')<0) {
		top.location.href = "index.aspx";
	}
}
function NavMain() {
	if (self != top) { 
		top.location.href=self.location.href;
	}
}

function openLS() {
	onerror = errhandler;
	if (loginLS){
		loginLS.focus();
		return;
	}
	var URL='pmindex.aspx';
	var xsize = screen.width;
	var ysize = screen.height; 
	var xpos = 0;
	var ypos = 0;
	loginLS=window.open(URL,"loginLS","height="+ysize+",width="+xsize+",toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=yes,resizable=1,top="+ypos+",left="+xpos+"");
}

function errhandler()  {return true;}
