function HMError(strEType,strError,strOther,strEN)
{
strError = unescape(strError).replace(/\+/g," ");
strError = strError.replace(/\\n/g,"\n");
switch(strEType)
{
case "A":
alert(strError);
break;
case "M":
if (ie)
DoModal(strOther,strEN);
else
DoFakeModal(strOther,strEN);
break;
case "C":
return(confirm(strError));
break;
}
}
function DoModal(strOther,strEN)
{
rv = window.showModalDialog("/cgi-bin/dasp/error_modalshell.asp?strEN="+strEN+"&r="+Math.round(Math.random()*1000000),"","dialogWidth:360px;dialogHeight:217px;help:0;scroll:0;status:0;");
if (rv.help)
CallPaneHelp(rv.help);
if (rv.url)
{
if (strOther=="attach")
DoSaveMSG();
else
location.href=rv.url;
}
}
function DoFakeModal(strOther,strEN)
{
var ErrOther = strOther;
window.open("/cgi-bin/dasp/error_modalshell.asp?strEN="+strEN+"&r="+Math.round(Math.random()*1000000), "newwin", "resizable=no,width=360,height=217");
}
