function pop_window(url,strName,intHeight,intWidth,intScroll,intButtons,intResize,intMenuBar) {
	if(intButtons != 1) {
		intButtons = 0;
	}
	if(intMenuBar != 1) {
		intMenuBar = 0;
	}
	if(navigator.userAgent.indexOf("MSIE") == -1) {
		newwindow2 = window.open(url, strName,'toolbar='+ intButtons +',location=0,directories=0,status=0,menubar='+intMenuBar+',scrollbars='+ intScroll +',resizable='+ intResize+ ',width='+intWidth+',height='+intHeight);
		newwindow2.moveTo(24,24);
		newwindow2.focus();
	} else {
		newwindow2 = window.open(url, strName,'toolbar='+ intButtons +',location=0,directories=0,status=0,menubar='+intMenuBar+',scrollbars='+ intScroll +',resizable='+ intResize+ ',width=' + intWidth + ',height=' + intHeight);
		newwindow2.moveTo(24,24);
		newwindow2.focus();
	}
}

function doCancel(strURL) {
	if(confirm('Click OK to leave this page without saving.')){
		location.href=strURL;
	}
}
var winConfirm = null;

function showConfirm()
{
  var windowWidth = 250;
  var windowHeight = 150;
  var locX = ( screen.width - windowWidth ) / 2;
  var locY = ( screen.height - windowHeight ) / 2;
  var windowFeatures = "width=" + windowWidth
                     + ",height=" + windowHeight
                     + ",screenX=" + locX
                     + ",screenY=" + locY
                     + ",left=" + locX
                     + ",top=" + locY;

  /* Close window first to make sure that our window has */
  /* the desired features */

  if ( ( winConfirm != null )
    && !winConfirm.closed )
  {
    winConfirm.close();
  }

  /* Open the new confirm */
  winConfirm = open( "", "winConfirm", windowFeatures );

  /* Write to the confirm box */
  var theHTML = '<HEAD><TITLE>________Confirm Cancel_____________</TITLE></HEAD>'
              + '<BODY BGCOLOR="#ffffff">'
              + '<CENTER><B>'
              + 'Are you sure you want to cancel without saving?'
              + '</B><FORM NAME="buttonForm">'
              + '<INPUT TYPE="button" VALUE=" YES  "'
              + ' ONCLICK="opener.buttonClicked(0);self.close();">'
              + '&nbsp;'
              + '<INPUT TYPE="button" VALUE="  NO  "'
              + ' ONCLICK="opener.buttonClicked(1);self.close();">'
              + '</FORM></BODY>';

  winConfirm.document.writeln( theHTML );
}

/* This function is called by the buttons on the confirm box ***************/

function buttonClicked( buttonChoice )
{
  /* Put in this function the result of the user's choice   */
  /* (in this case, write the user's choice in a textfield) */

  switch( buttonChoice )
  {
    case 0:
      location.href="default.aspx";
      break;
    case 1:
      break;
 
  }
}

