function MM_openEvalRegPage(theID,theProduct,theEmail) { //v2.0
	if (theID=="" || theProduct=="" || theEmail=="") {
		alert ("Incorrect Parameters. Ignored.");
	} else 
	{
		window.open( "http://www.progress-plus.com/reg.php?initID=" + theID + "&product=" + theProduct + "&email=" + theEmail,"_blank","width=650,height=550,resizable,scrollbars");
	}
}

function MM_openRegPage(regType,theID,thePasswd) { //v2.0
//if ( regType=="eval" ) { 
//	window.open("http://www.progress-plus.com/reg.php?initID=" + theID + "&email=" + thePasswd,"_blank","width=650,height=550,resizable,scrollbars");
//	};
if ( regType=="newTstAcct" ) { 
	window.open("http://www.progress-plus.com/tacct.php","_blank","width=800,height=600,resizable,scrollbars");	
	};
if ( regType=="tstLogin" ) { 
	window.open("http://www.progress-plus.com/tmain.php?userid=" + theID + "&passwd=" + thePasswd + "&tstgroup=IT_eng","_blank","width=800,height=600,resizable,scrollbars,status");	
	};
if ( regType=="tstLoginRus" ) { 
	window.open("http://www.progress-plus.com/tmain.php?userid=" + theID + "&passwd=" + thePasswd + "&tstgroup=CA_rus","_blank","width=800,height=600,resizable,scrollbars,status");	
	};
	
if ( regType=="tstPIN" ) { 
	window.open("http://www.progress-plus.com/tprofview.php?pin=" + theID,"_blank","width=800,height=600,resizable,scrollbars");	
	};

if ( regType=="mailpasswd" ) { 
	window.open("http://www.progress-plus.com/mailpasswd.php?loginid=" + theID,"_blank","width=650,height=300,resizable,scrollbars");	
	};
	
}

function MM_openConfRegPage(mode,theID,thePasswd,product) { //v2.0
if ( mode=="login" ) { 
	window.open("http://www.progress-plus.com/p4mConf.php?mode=" + mode + "&userid=" + theID + "&passwd=" + thePasswd + "&product=" + product,"_blank","width=800,height=600,resizable,scrollbars");
}
}

function MM_openMaintExtPage(mode,theID,thePasswd,product) { //v2.0
if ( mode=="login" ) { 
	window.open("http://www.progress-plus.com/p4mMaint.php?mode=" + mode + "&userid=" + theID + "&passwd=" + thePasswd + "&product=" + product,"_blank","width=750,height=450,resizable,scrollbars");
}
}


function MM_emaillist(email,rb0,rb1,rb2,rb3,rb4) { //v2.0
window.open("http://www.progress-plus.com/maillist.php?email=" + email + "&rb0=" + rb0 + "&rb1=" + rb1 + "&rb2=" + rb2 + "&rb3=" + rb3 + "&rb4=" + rb4,"_blank","width=650,height=400,resizable,scrollbars,status");	
}


function MM_buyLicence(cProd, cVart, cDlvr, cQnty, cMesg) { //v2.0
if (cMesg == "Referral Initialization ID") cMesg = ""; 
url = "https://usd.swreg.org/cgi-bin/s.cgi?s=43344&p=43344"+cProd+"&v="+cVart+"&d="+cDlvr+"&q="+cQnty+"&t="+cMesg+"&affil="+cMesg+"&pub="+cMesg;

window.open(url, "_blank", ""); 
}

function MM_buyLicenceNew( cItemNum, Qnty, cItem_name, Amount) { //v2.0

	window.open("https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=sales@progress-plus.com&item_name="+cItem_name+"&item_number="+cItemNum+"&amount="+Amount*Qnty+"&no_note=1&currency_code=USD&return=http://www.progress-plus.com/thankyou.htm", "_blank", ""); 
//<input type="hidden" name="cmd" value="_xclick">
//<input type="hidden" name="business" value="sales@progress-plus.com">
//<input type="hidden" name="item_name" value="PRO4m PROFESSIONAL EDITION">
//<input type="hidden" name="item_number" value="1">
//<input type="hidden" name="amount" value="284.00">
//<input type="hidden" name="no_note" value="1">
//<input type="hidden" name="currency_code" value="USD">
}

function MM_buyMaintenance( cItemNum, Qnty, cItem_name, Amount) { //v2.0
	window.open("https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=sales@progress-plus.com&item_name="+cItem_name+"&item_number="+cItemNum+"&amount="+Amount*Qnty+"&no_note=1&currency_code=USD&return=http://www.progress-plus.com/thankyouMaint.htm", "_blank", ""); 
}


/*
function ftpLogin(username,password,server) {
	var name = navigator.appName;
	var vers = navigator.appVersion;
	vers = vers.substring(0,1);
	if (name == "Microsoft Internet Explorer") { 
		if (username && server) {
			var ftpsite;
			if (password) {
				ftpsite = "ftp://" + username + ":" + password + "@" + server;
			}
			else {
				ftpsite = "ftp://" + username + "@" + server;
			}
			window.open(ftpsite,"FTPWin");
		}
		else { alert("Please specify an username and FTP server's address."); }
	}
	else alert("Sorry, Microsoft Internet Explorer only.");
}
*/
function notAvailable(theMesg) {
	alert("We are sorry, " + theMesg + "  currently is not available.");
}


