/* JS Popup */
var pop = null;

function popup(url) {

	if (navigator.appName.indexOf("Netscape") != -1)
	{
	 return true;
	}

	
  w=screen.width; h=screen.height;
  isie=1;
  if (document.documentElement.clientHeight) {
	w = document.documentElement.clientWidth+5;
	h = document.documentElement.clientHeight+5;
	if (screen.width<w+30) {w=screen.width; h=screen.height;}
  }
  if (window.outerWidth) {  
	w = document.documentElement.clientWidth+5;
	h = document.documentElement.clientHeight+5;
	isie=0;
  }
  
  var args = "toolbar=1"+",location=1"+",directories=1"+",status=1"+",menubar=1"+",scrollbars=1"+",resizable=1"+",width="+w+",height="+h;
      
  pop = window.open(url,'',args);

  if (isie==1) {
		pop.moveTo((screen.width-w)/2,(screen.height-h)/4);
  }
  else {
  		pop.moveTo(this.screenX+3,this.screenY+2);
  }

  return (pop) ? false : true;
}

