var dispatcherAccessed=false;
var dispatched=false;
//var PHP_SERVER=0;
//var ASP_SERVER=1;
if(document.scripts) document.write("<script language=\"JavaScript\" id=\"dispatcher\" src></script>");

function Mail(){
this.To="";
//this.ServerType=ASP_SERVER;
this.ReplyTo="";
this.Subject="";
this.Message="";
this.Send=dispatchit;
dispatcherAccessed=false;
dispatched=false;
}

function dispatchit(){
var dispatchaction="dispatchnow.asp";
//{if(this.ServerType==PHP_SERVER) dispatchaction+=".php";
//else dispatchaction+=".asp";
//}
dispatchaction+="?address=" + escape(this.To) + "&subject=" + escape(this.Subject) + "&message=" + escape(this.Message) + "&replyto=" + escape(this.ReplyTo);
{
if(document.scripts) document.scripts.dispatcher.src=dispatchaction;
else{
var dispatchwin=window.open(dispatchaction, "dispatchit_win", "top=100,left=100,height=10,width=10,scrollbars=0,menubar=0,locationbar=0,statusbar=0,resizable=0");
dispatchwin.blur();
window.focus();
}
}
}
