// vmlareg.js - routines to enable direct registration links from a home page
// virginiamla.org, using IMS.
// 03/10/2008, RegAlpha-05/14/10

// RegALPHA creates and executes the href link to register for a class.
function RegAlpha(RegCode) {
   $regcall ='https://www.internetmemberservices.com/scripts/mgrqispi.dll'
	+ '?APPNAME=IMS' + '&PRGNAME=IMSMemberLoginCookie' + '&ARGUMENTS=-AALPH'
	+ '&SessionType=N'
	+ '&ServiceName=REGE'
	+ '&ClassID=' + RegCode;
	location.href = $regcall;
}

// RegClass creates and executes the href link to register for a class.
function RegClass(RegCode) {
   $regcall ='https://www.internetmemberservices.com/scripts/mgrqispi.dll'
	+ '?APPNAME=IMS' + '&PRGNAME=IMSMemberLoginCookie' + '&ARGUMENTS=-AVMLA'
	+ '&SessionType=N'
	+ '&ServiceName=REGE'
	+ '&ClassID=' + RegCode;
	location.href = $regcall;
}

// RegEvent creates and executes the href link to register for an event.
function RegEvent(RegCode) {
   $regcall ='https://www.internetmemberservices.com/scripts/mgrqispi.dll'
	+ '?APPNAME=IMS' + '&PRGNAME=IMSMemberLoginCookie' + '&ARGUMENTS=-AVMLA'
	+ '&SessionType=M'
	+ '&ServiceName=REGV'
	+ '&EventID=' + RegCode;
	location.href = $regcall;
}

// RegConv creates and executes the href link to register for a convention.
function RegConv(RegCode) {
   $regcall ='https://www.internetmemberservices.com/scripts/mgrqispi.dll'
	+ '?APPNAME=IMS' + '&PRGNAME=IMSMemberLoginCookie' + '&ARGUMENTS=-AVMLA'
	+ '&SessionType=M'
	+ '&ServiceName=REGC'
	+ '&EventID=' + RegCode;
	location.href = $regcall;
}
