function requestPassword()  {
        aPopup=window.open('','getPW','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,left=10,top=10,width=630,height=420')
        self.getPW=aPopup
        self.getPW.focus()
}

function closewindow()  {
parent.statuswindow.document.location.href='statusmsg.htm';
parent.contentwindow.document.location.href='blank.htm';
}

function writecookies(varUsername, varPassword) {
	var args = new Array();
	var arr = null;
	document.cookie = "ID=" + varUsername;
	document.cookie = "PW=" + varPassword;
	document.forms["Loginform"].submit()
	//alert(document.cookie);
	//args["Accept"] = false
	//window.parent.statuswindow.document.location.href="status/blank.htm";
	//parent.frames["statuswindow"]
	//window.parent.document.location.href="status/blank.htm"
	//arr = showModalDialog("disclaimer1.asp", args,"font-family:Verdana; font-size:12; dialogWidth:480px; dialogHeight:350px");
	//showModalDialog("disclaimer1.asp", ,"font-family:Verdana; font-size:12; dialogWidth:480px; dialogHeight:350px");
	//alert(arr["Accept	"]);
	//parent.nav.Tree.setFile(2)
	//parent.contentwindow.document.location.href='disclaimer1.asp?FileType=login'
	//closewindow();
}

function dosomething(mID)  {
	alert(mID);
}

function window.onload()  {
	//window.moveTo ((window.screen.availWidth - 650)/2,(window.screen.availHeight - 650)/2);
	//window.resizeTo (250,300);
	//window.name = "DPALogin";
	//window.screen.availHeight;
}

// function for login DPAlogin2.asp in html dir
function validateEmailAddress( strEmail ) {
    if ( document.Loginform.elements['id'].value.substring(0,6) == "lawyer" ) { 
	window.alert( strEmail )
	while ( isEmail( strEmail ) == false) {
		promptMessage = 'Hold on a minute:  Please re-enter your password in the blank below.\n'
		promptMessage += 'If you need a guest password, please call 800-978-7100. \n'
		temp = window.prompt( promptMessage , 
			strEmail.value );
		document.Loginform.pw.value = temp ; 
		if ( temp == null ) break;
		}
    }
    // Otherwise, continue without checking for e-mail validity   
}

// this accepts certain invalid e-mail addresses, by agreement, i.e., '@.' 
function isEmail( temp ) {
	if ( temp.value.indexOf("@") != "-1" &&
	    temp.value.indexOf(".") != "-1" &&
	    temp.value != "" )  {
	return true;
	}
	else return false;
}