//formname is the name of form

//subject is the name of subject control

//body is the name of message body control

//compnayid, each company will give a company id.  This is used to find the location

//of custom dictionary

//If you run from your own location, you can just pass custom as the value.

//all custom dictionary will created under this sub directory

//sproxylocation is location of done.asp or done.cgi



//this file will be generated for each customer

function DoSpell(formname, subject, body)

{

	document.SPELLDATA.formname.value=formname

	if(subject!=null)

		document.SPELLDATA.subjectname.value=subject

	

	if(body!=null)

		document.SPELLDATA.messagebodyname.value=body

	

	document.SPELLDATA.companyID.value="custom\\CompuBridge"

	document.SPELLDATA.language.value=1033

	document.SPELLDATA.formaction.value="http://www.spellchecker.com/spell/startspelling.asp"

	

//	document.SPELLDATA.opener.value="../cgi-bin/sproxy.exe"

	document.SPELLDATA.opener.value="http://dist.bps101.net/cgi-bin/beam/Sources/sproxy.pl"

//	document.SPELLDATA.opener.value="http://www.spellchecker.com/spell/sproxy.asp"

	

	window.open("http://dist.bps101.net/beam/initspell.htm","Spell",

		"toolbar=no,directories=no,resizable=yes,width=620,height=500,top=100,left=100 menubar=no")

}




