function openFrameless(urlPop, popW, popH){
	var w = screen.availWidth;
	var h = screen.availHeight;
	
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;

	var autoclose = true
	s = "width="+popW+",height="+popH+", left="+leftPos+", top="+topPos;
	NFW=window.open(urlPop,"popFrameless","scrollbars=1,"+s)
    NFW.blur()
    window.focus() 
    //NFW.resizeTo(windowW,windowH)
    //NFW.moveTo(windowX,windowY)
  NFW.focus()   
  if (autoclose){
    window.onunload = function(){NFW.close()}
  }
}

function toggle_enable(thisField){
	thing = eval("document."+thisField)
	if (thing.disabled==true) {
		thing.disabled=false;
	}
	else {
		thing.disabled=true;
	}
}