var newWin = null;

function popUp(strURL, strType, strHeight, strWidth) {

 if (newWin != null && !newWin.closed)

   newWin.close();

 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,location,height="+

     strHeight+",width="+strWidth;

 newWin = window.open(strURL, 'newWin', strOptions);

 newWin.focus();

}


function DisableEnableForm(xForm){
	  objElems = xForm.elements;

	  for(i=0;i<objElems.length;i++){

		if (objElems[i].type == "submit") {
		// nist
		}
	    else 
	    if (objElems[i].type == "checkbox") {
		// nist
		}
	    else 
		if (objElems[i].disabled == false) {
	    objElems[i].disabled = true;
	    objElems[i].value = "-";
	    } else {
	    objElems[i].disabled = false;
	    objElems[i].value = "";
	    }
	  }
	}
