// Show a generic modal dialog 
function showModalDialogWin(modalUrl)
{
  var dlgAttr;
  //var dlgParams;
  dlgParams = new Array();
  // dlgParams[0] = dlgServlet;

  dlgAttr = "dialogHeight: 450px;";
  dlgAttr += " dialogWidth: 800px;";
  dlgAttr += " center: Yes;";
  dlgAttr += " help: Yes;";
  dlgAttr += " resizable: Yes;";
  dlgAttr += " status: No;";
//alert (dlgAttr);
  return showModalDialog(modalUrl, "Modal", dlgAttr);
}

//--Scripts for the Menu

function showmenu(elmnt)
{
document.getElementById(elmnt).style.display = "block";
}
function hidemenu(elmnt)
{
document.getElementById(elmnt).style.display = "none";
}


// open child windows

function openChildWin(theURL,name,features)	{
window.open(theURL,name,features)
}

//------------------------------------------------------------------------
function printfunction()  //prints the current page
{
  window.print();
}
 // --------validate password fields -----------
 
function validatePsw(field1, field2)
{
	if (field1.value != field2.value )
  {
    alert("Passwords do not match");
   field1.select();
	return false;	
  }    
  return true;	
}


//------------------------------------------------------------------------


// Dreamweaver Functions

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
