function PopUpWin(FldName, relObj){
   
   //window.document.DEform.txtFldCall.value = FldName;
   
   if (document.getElementById("txtFldCall")) {
		document.getElementById("txtFldCall").value = FldName;
   } else {
   	  alert("txtFldCall element id not found in JSpuCalSrc.js PopUpWin()")
   }
   
   
   
// 8-9-2001 modified to pass window coordinates based on the mouse X,Y positon at click
//    the upper left hand corner.. not really important here.. just exploring options
//    wWinTop = window.screenTop;
//    wWinLeft = window.screenLeft;

//  ah, the X, Y screen positions of mouse cursor when window.event fired (in this case button click)
    var calWidth = 205;  // make it wider for non-IE
	var wTop;
	var wLeft;
	// unfortunately, window.event is an IE thing... firefox does not know what to do.
	if (window.event){
		wTop = window.event.screenY ;
		wLeft = window.event.screenX ;		
	} else {
		wTop = 300;
		wLeft = 400;
		calWidth = 330;
	}

    var wScrnWidth = screen.width ;

    var wMaxLeft = wScrnWidth - 210

    if (wLeft > wMaxLeft){
       wLeft = wMaxLeft
    } else {

       if (wLeft > 105){
          wLeft = wLeft - 105
       } else {
          wLeft = 0
       }
    }

   // alert(wTop);

    if (wTop > 500){
       wTop =400
    }

    wTop = wTop + 10;

//    var objOffSetParent = relObj.offsetParent;
//    var wOP

//    alert ("offsetParent: " + wOP);
//    wLeft = relObj.clientLeft;

   var WinParms = 'width='+calWidth+',height=250,top=' + wTop + ', left=' + wLeft;
   var CurFldVal = document.getElementById(FldName).value
   //if (CurFldVal > ' '){
   //}else{
   //	alert('no default date detected in field ' + FldName)
   //}
   window.open('PopUpCal.ASP?DfltDate='+CurFldVal,'popupcal', WinParms);
}
