
var globalUrl=null;
function confirmUrl(whichLayer,result,url){
  

//alert("url:"+url);
//  alert("g1:"+globalUrl);
if (globalUrl == null)
{
globalUrl = url;
}
else if ((globalUrl != null) && (url != "") && (globalUrl != url))

{
globalUrl = url;
}

  if (document.getElementById){
   // this is the way the standards work
   var style2 = document.getElementById(whichLayer).style;
   style2.display = "block";
   style2.position = "absolute";
//   style2.width = "500px";
//   style2.height = "300px";
    style2.top = "300px";
     style2.left = "300px";
  }
  else if (document.all){
    // this is the way old msie versions work
    var style2 = document.all[whichLayer].style;
  }
  else if (document.layers){
  // this is the way nn4 works
  var style2 = document.layers[whichLayer].style;
  }
 
 if (result=='show')
  {
	style2.display = "block";
  }
 else if  (result=='yes')
  {
	style2.display = "none";
//	alert("g3:"+globalUrl);


var w = 480, h = 340;

if (document.all || document.layers) {
   w = screen.availWidth;
   h = screen.availHeight;
}

var popW = 1024, popH = 768;

var leftPos = (w-popW)/2, topPos = (h-popH)/2;

window.open(globalUrl,'popup','width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos+',toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes, location=yes, status=yes ');



//	window.open(globalUrl, "newwindow", "height=600, width=800, top=0,left=0,toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes, location=yes, status=yes" );
  }
 else if  (result=='no')
  {
	style2.display = "none";
  }
 
}

