

function pop(n,u,w,h,args2,x) {
	if (args2.indexOf('scrollbars=no') != -1){
		args="width="+w+",height="+h+","+args2; 
	}else
	{
		args="width="+w+",height="+h+","+args2+",scrollbars=yes"; 
	}
  remote=window.open(u,n,args);
  if (remote != null) {
    if (remote.opener == null)
      remote.opener = self;
  }
  remote.focus();
  if (x == 1) { return remote; }
}


function popup(URL, n, w, h, scrollYN, resizeYN){
window.open(URL, n,'toolbar=no,scrollbars=' + scrollYN + ',location=no,statusbar=no,menubar=no,resizable=' + resizeYN + ',width=' + w + ',height=' + h);
}

function popupnew(URL, n, w, h){
window.open(URL, n,'toolbar=yes,scrollbars=yes,location=yes,statusbar=yes,menubar=yes,resizable=yes,width=' + w + ',height=' + h);
}


function popWin( name,url,width,height,params,returnVal ) {
	args="width="+width+",height="+height+","+params; 

	remote=window.open( url,name,args );

	if ( remote != null ) {
		if ( remote.opener == null )
			remote.opener = self;
	}

	remote.focus();

	if (returnVal == 1)
		return remote;
}