function validateForm(formNumber) {

// Purpose: 	This function is for standard form validation. It is called from
//		all forms to perform required fields validation
//
// Inputs:  	formName - The name of the form being validated
//
// Returns: 	true - Returns true when the form passes validation
//		false - Returns false when the form fails validation
//
// Created By:	Steve Jeske, Kryos Systems Associates, Sept 29/2000

	strMissingFields = new Array()
	strAllMissingFields = ""
	intNumberMissingFields = 0

	var docCurrent = document.forms[0]

//------------------------------------------------------------------------------------------------

	// Determine which Form is being validated. This is determined by parameter "formNumber".
	// Here is a listing of the constants that are passed in for each form.

	// FORM: Section Page		FORM NUMBER: 0
	// FORM: Content Page		FORM NUMBER: 1
	// FORM: Graphic		FORM NUMBER: 2
	// FORM: Trade Show Page	FORM NUMBER: 3
	// FORM: Help			FORM NUMBER: 4
	// FORM: Keywords		FORM NUMBER: 5
	// FORM: Attachment		FORM NUMBER: 7
	// FORM: JobPosting		FORM NUMBER: 8
	// FORM: RFI			FORM NUMBER: 20
	// FORM: EventEmail		FORM NUMBER: 21
	// FORM: EventReg		FORM NUMBER: 22
	// FORM: Resume			FORM NUMBER: 23
	// FORM: EventRegSSL		FORM NUMBER: 30
	
	switch (formNumber) {
		case 0:
			strMissingFields = validateSectionForm(docCurrent, strMissingFields);
			break;
		case 1:
			strMissingFields = validateContentForm(docCurrent, strMissingFields);
			break;
		case 2:
			strMissingFields = validateGraphicForm(docCurrent, strMissingFields);
			break;
		case 3:
			strMissingFields = validateTradeShowForm(docCurrent, strMissingFields);
			break;
		case 4:
			strMissingFields = validateHelpForm(docCurrent, strMissingFields);
			break;
		case 5:
			strMissingFields = validateKeywordForm(docCurrent, strMissingFields);
			break;
		case 7:
			strMissingFields = validateAttachmentForm(docCurrent, strMissingFields);
			break;
		case 8:
			strMissingFields = validateJobPostingForm(docCurrent, strMissingFields);
			break;
		case 20:
			strMissingFields = validateRFIForm(docCurrent, strMissingFields);
			break;
		case 21:
			strMissingFields = validateEventEmailForm(docCurrent, strMissingFields);
			break;
		case 22:
			strMissingFields = validateEventRegForm(docCurrent, strMissingFields);
			break;
		case 23:
			strMissingFields = validateResumeForm(docCurrent, strMissingFields);
			break;
		case 30:
			strMissingFields = validateEventRegSSLForm(docCurrent, strMissingFields);
			break;
		default:
			alert("Unknown Form Number. Form Not Validated.");
			break;
	}

//------------------------------------------------------------------------------------------------

	// Now build the error message to display to the user.

	intNumberMissingFields = strMissingFields.length;

	if (intNumberMissingFields >0)
		{
		strAllMissingFields=strMissingFields[intNumberMissingFields-1]
		if (intNumberMissingFields >1)
			{
			if (intNumberMissingFields == 2)
				{
				strAllMissingFields=strAllMissingFields+" and " + strMissingFields[0]
				}
			else
				{
				for (i=intNumberMissingFields-2;i>0;i--)
					{
					strAllMissingFields=strAllMissingFields+", " + strMissingFields[i]
					}
				strAllMissingFields=strAllMissingFields+", and "+ strMissingFields[0]
				}
			}
		alert("Please enter in your " + strAllMissingFields +" to save this page.")
		return false
		}
	else
		{
		return true
		}
	return true
}

//******************************************************************************************

function validatePostingInfoSubform(docCurrent, strMissingFields) {

// Purpose: 	This function validates the Posting Info Subform
//
// Inputs:  	docCurrent - the current form being validated
//		strMissingFields - an array of missing fields already found
//
// Returns: 	The updated array of missing fields
//
// Created By:	Steve Jeske, Kryos Systems Associates, Sept 29/2000

	//Checks that the closing date of the posting is entered ...

	if (docCurrent.closedate.value == "")
	{
		docCurrent.closedate.focus()
		strMissingFields[strMissingFields.length] = "close date"
	}

	//Checks that the opening date of the posting is entered ...

	if (docCurrent.opendate.value == "")
	{
		docCurrent.opendate.focus()
		strMissingFields[strMissingFields.length] = "open date"
	}

	//Checks that the posting number is entered ...

	if (docCurrent.postingnum.value == "")
	{
		docCurrent.postingnum.focus()
		strMissingFields[strMissingFields.length] = "posting number"
	}

	// Checks that the event title is entered ...

	if (docCurrent.subject.value == "")
	{
		docCurrent.subject.focus()
		strMissingFields[strMissingFields.length] = "job title"
	}

	return strMissingFields;
}

//******************************************************************************************

function validatePublishInfoSubform(docCurrent, strMissingFields) {

// Purpose: 	This function validates the Publish Info Subform
//
// Inputs:  	docCurrent - the current form being validated
//		strMissingFields - an array of missing fields already found
//
// Returns: 	The updated array of missing fields
//
// Created By:	Steve Jeske, Kryos Systems Associates, Sept 29/2000

	//Check if include in what's new is checked and if so if an expirydate is entered ...

	if ((docCurrent.whatsnew.checked == true) && (docCurrent.newexpirydate.value==""))
	{
		docCurrent.newexpirydate.focus();
		strMissingFields[strMissingFields.length] = "what's new expiry date"
	}

	//Check if "To be published is selected" and if so if a publish date has been entered ...

	if (docCurrent.status.selectedIndex == 2 && docCurrent.publishdate.value == "")
	{
		docCurrent.publishdate.focus()
		strMissingFields[strMissingFields.length] = "publish date"
	}

	//Check if the status of the page has been entered ...

	if (docCurrent.status.selectedIndex == 0)
	{
		docCurrent.status.focus()
		strMissingFields[strMissingFields.length] = "status"
	}

	if ((docCurrent.Restricted.checked) && (!(docCurrent.restrictedusers[0].checked)) && (!(docCurrent.restrictedusers[1].checked)) )
	{
		docCurrent.restrictedusers[0].focus();
		strMissingFields[strMissingFields.length] = "restricted access"
	}

	//Check if an owners email has been selected ...

	if (docCurrent.owneremail.selectedIndex == 0)
	{
		docCurrent.owneremail.focus()
		strMissingFields[strMissingFields.length] = "page owner email"
	}

	return strMissingFields;
}

//******************************************************************************************

function validatePageSubjectSubform(docCurrent, strMissingFields) {

// Purpose: 	This function validates Page Subject Subform
//
// Inputs:  	docCurrent - the current form being validated
//		strMissingFields - an array of missing fields already found
//
// Returns: 	The updated array of missing fields
//
// Created By:	Steve Jeske, Kryos Systems Associates, Sept 29/2000

	// Checks to make sure the synopsis has been entered ...

	if (docCurrent.synopsis.value == "")
	{
		docCurrent.synopsis.focus()
		strMissingFields[strMissingFields.length] = "page synopsis"
	}

	// Checks to make sure the subject has been entered ...

	if (docCurrent.subject.value == "")
	{
		docCurrent.subject.focus()
		strMissingFields[strMissingFields.length] = "page title"
	}

	return strMissingFields;
}

//******************************************************************************************

function validateSectionForm(docCurrent, strMissingFields) {

// Purpose: 	This function validates the Section Form
//
// Inputs:  	docCurrent - the current form being validated
//		strMissingFields - an array of missing fields already found
//
// Returns: 	The updated array of missing fields
//
// Created By:	Steve Jeske, Kryos Systems Associates, Sept 29/2000

	// Validate the Publish info and Page Subject subforms ...

	strMissingFields = validatePublishInfoSubform(docCurrent, strMissingFields);
	strMissingFields = validatePageSubjectSubform(docCurrent, strMissingFields);

	//Checks if section name has been entered ...	

	if (docCurrent.sectionname.value == "")
	{
		docCurrent.sectionname.focus()
		strMissingFields[strMissingFields.length] = "section name"
	}

	return strMissingFields;
}


//******************************************************************************************

function validateContentForm(docCurrent, strMissingFields) {

// Purpose: 	This function validates the Content Form
//
// Inputs:  	docCurrent - the current form being validated
//		strMissingFields - an array of missing fields already found
//
// Returns: 	The updated array of missing fields
//
// Created By:	Steve Jeske, Kryos Systems Associates, Sept 29/2000

	// Validate the Publishing info subform ...

	strMissingFields = validatePublishInfoSubform(docCurrent, strMissingFields);

	// Checks if link to be displayed on home page selected that short subject is entered ...

//	if ((docCurrent.onhomepage.checked == true) && (docCurrent.shortSubject.value==""))
//	{
//		docCurrent.shortSubject.focus();
//		strMissingFields[strMissingFields.length] = "short subject for home page"
//	}

	// Validate the Page Subject Subform ...

	strMissingFields = validatePageSubjectSubform(docCurrent, strMissingFields);

	// Checks if page section has been selected ...

	if (docCurrent.categories.selectedIndex == 0)
	{
		docCurrent.categories.focus()
		strMissingFields[strMissingFields.length] = "page section category"
	}

	return strMissingFields;
}

//******************************************************************************************

function validateTradeShowForm(docCurrent, strMissingFields) {

// Purpose: 	This function validates the Trade Show Form
//
// Inputs:  	docCurrent - the current form being validated
//		strMissingFields - an array of missing fields already found
//
// Returns: 	The updated array of missing fields
//
// Created By:	Steve Jeske, Kryos Systems Associates, Sept 29/2000

	// Validate the Publishing info subform ...

	strMissingFields = validatePublishInfoSubform(docCurrent, strMissingFields);

	// Checks that the event time is entered ...

	if (docCurrent.eventtime.value == "")
	{
		docCurrent.eventtime.focus()
		strMissingFields[strMissingFields.length] = "event time"
	}

	//Checks that the end date is entered ...

	if (docCurrent.enddate.value == "")
	{
		docCurrent.enddate.focus()
		strMissingFields[strMissingFields.length] = "end date"
	}

	//Checks that the start date is entered ...
	
	if (docCurrent.startdate.value == "")
	{
		docCurrent.startdate.focus()
		strMissingFields[strMissingFields.length] = "start date"
	}

	//Checks that the country is entered ...

	if (docCurrent.Country.value == "")
	{
		docCurrent.Country.focus()
		strMissingFields[strMissingFields.length] = "country"
	}

	//Checks that the city is entered ...

	if (docCurrent.city.value == "")
	{
		docCurrent.city.focus()
		strMissingFields[strMissingFields.length] = "city"
	}

	//Checks that the address is entered ...

	if (docCurrent.address.value == "")
	{
		docCurrent.address.focus()
		strMissingFields[strMissingFields.length] = "event address"
	}

	//Checks that the synopsis is entered ...

	if (docCurrent.synopsis.value == "")
	{
		docCurrent.synopsis.focus()
		strMissingFields[strMissingFields.length] = "sypnopsis of the event"
	}

	// Checks that the event title is entered ...

	if (docCurrent.subject.value == "")
	{
		docCurrent.subject.focus()
		strMissingFields[strMissingFields.length] = "event title"
	}

	return strMissingFields;
}

//******************************************************************************************

function validateRFIForm(docCurrent, strMissingFields) {

// Purpose: 	This function validates the RFI Form
//
// Inputs:  	docCurrent - the current form being validated
//		strMissingFields - an array of missing fields already found
//
// Returns: 	The updated array of missing fields
//
// Created By:	Steve Jeske, Kryos Systems Associates, Sept 30/2000


	if (docCurrent.emailadr.value == "")
		{
		docCurrent.emailadr.focus()
		strMissingFields[strMissingFields.length] = "e-mail address"
		}		
	if (docCurrent.country.value == "")
		{
		docCurrent.country.focus()
		strMissingFields[strMissingFields.length] = "country"
		}		
	if (docCurrent.pcode.value == "")
		{
		docCurrent.pcode.focus()
		strMissingFields[strMissingFields.length] = "postal/zip code"
		}
	if (docCurrent.city.value == "")
		{
		docCurrent.city.focus()
		strMissingFields[strMissingFields.length] = "city"
		}
	if (docCurrent.AddressL1.value == "")
		{
		docCurrent.AddressL1.focus()
		strMissingFields[strMissingFields.length] = "mailing address"
		}
	if (docCurrent.company.value == "")
		{
		docCurrent.company.focus()
		strMissingFields[strMissingFields.length] = "company"
		}
	if (docCurrent.From.value == "")
		{
		docCurrent.From.focus()
		strMissingFields[strMissingFields.length] = "name"
		}

	return strMissingFields;
}

//******************************************************************************************

function validateEventEmailForm(docCurrent, strMissingFields) {

// Purpose: 	This function validates the Event Email Form
//
// Inputs:  	docCurrent - the current form being validated
//		strMissingFields - an array of missing fields already found
//
// Returns: 	The updated array of missing fields
//
// Created By:	Steve Jeske, Kryos Systems Associates, Sept 30/2000

	if(docCurrent.emailadr.value=='' && docCurrent.phone.value=='') {
		docCurrent.emailadr.focus();
		strMissingFields[strMissingFields.length] = "e-mail address and/or phone number"		
	}

	if (docCurrent.From.value == "")
		{
		docCurrent.From.focus()
		strMissingFields[strMissingFields.length] = "name"
		}

	return strMissingFields;
}

//******************************************************************************************

function validateJobPostingForm(docCurrent, strMissingFields) {

// Purpose: 	This function validates the Job Posting Form
//
// Inputs:  	docCurrent - the current form being validated
//		strMissingFields - an array of missing fields already found
//
// Returns: 	The updated array of missing fields
//
// Created By:	Steve Jeske, Kryos Systems Associates, Sept 30/2000

	// Validate the Publish info and Posting Info subforms ...

	strMissingFields = validatePublishInfoSubform(docCurrent, strMissingFields);
	strMissingFields = validatePostingInfoSubform(docCurrent, strMissingFields);

	return strMissingFields;
}

//******************************************************************************************

function validateEventRegForm(docCurrent, strMissingFields) {

// Purpose: 	This function validates the Event Reg Form
//
// Inputs:  	docCurrent - the current form being validated
//		strMissingFields - an array of missing fields already found
//
// Returns: 	The updated array of missing fields
//
// Created By:	Steve Jeske, Kryos Systems Associates, Sept 30/2000

	if (docCurrent.emailadr.value == "")
		{
		docCurrent.emailadr.focus()
		strMissingFields[strMissingFields.length] = "e-mail address"
		}

	if (docCurrent.phone.value == "")
		{
		docCurrent.phone.focus()
		strMissingFields[strMissingFields.length] = "phone number"
		}
		
	if (docCurrent.country.value == "")
		{
		docCurrent.country.focus()
		strMissingFields[strMissingFields.length] = "country"
		}		

	if (docCurrent.pcode.value == "")
		{
		docCurrent.pcode.focus()
		strMissingFields[strMissingFields.length] = "postal/zip code"
		}

	if (docCurrent.city.value == "")
		{
		docCurrent.city.focus()
		strMissingFields[strMissingFields.length] = "city"
		}

	if (docCurrent.AddressL1.value == "")
		{
		docCurrent.AddressL1.focus()
		strMissingFields[strMissingFields.length] = "mailing address"
		}

	if (docCurrent.company.value == "")
		{
		docCurrent.company.focus()
		strMissingFields[strMissingFields.length] = "company"
		}

	if (docCurrent.From.value == "")
		{
		docCurrent.From.focus()
		strMissingFields[strMissingFields.length] = "name"
		}

	return strMissingFields;
}

//******************************************************************************************

function validateEventRegSSLForm(docCurrent, strMissingFields) {

// Purpose: 	This function validates the Event Reg Form
//
// Inputs:  	docCurrent - the current form being validated
//		strMissingFields - an array of missing fields already found
//
// Returns: 	The updated array of missing fields
//
// Created By:	Steve Jeske, Kryos Systems Associates, Sept 30/2000

	if ((docCurrent.paymentoption[2].checked) && (docCurrent.creditcardnumber.value == ""))
		{
		docCurrent.creditcardnumber.focus()
		strMissingFields[strMissingFields.length] = "credit card number"
		}

	if ((docCurrent.paymentoption[2].checked) && (docCurrent.creditcardname.value == ""))
		{
		docCurrent.creditcardname.focus()
		strMissingFields[strMissingFields.length] = "name on the credit card"
		}
	
	if ((docCurrent.paymentoption[2].checked) && (!(docCurrent.creditcardtype[0].checked)) && (!(docCurrent.creditcardtype[1].checked)) && (!(docCurrent.creditcardtype[2].checked)))
	{
		docCurrent.creditcardtype[0].focus();
		strMissingFields[strMissingFields.length] = "credit card type"
	}

	if ((!(docCurrent.paymentoption[0].checked)) && (!(docCurrent.paymentoption[1].checked)) && (!(docCurrent.paymentoption[2].checked)) )
	{
		docCurrent.paymentoption[0].focus();
		strMissingFields[strMissingFields.length] = "payment type"
	}

	if (docCurrent.emailadr.value == "")
		{
		docCurrent.emailadr.focus()
		strMissingFields[strMissingFields.length] = "e-mail address"
		}

	if (docCurrent.phone.value == "")
		{
		docCurrent.phone.focus()
		strMissingFields[strMissingFields.length] = "phone number"
		}
		
	if (docCurrent.country.value == "")
		{
		docCurrent.country.focus()
		strMissingFields[strMissingFields.length] = "country"
		}		

	if (docCurrent.pcode.value == "")
		{
		docCurrent.pcode.focus()
		strMissingFields[strMissingFields.length] = "postal/zip code"
		}

	if (docCurrent.city.value == "")
		{
		docCurrent.city.focus()
		strMissingFields[strMissingFields.length] = "city"
		}

	if (docCurrent.AddressL1.value == "")
		{
		docCurrent.AddressL1.focus()
		strMissingFields[strMissingFields.length] = "mailing address"
		}

	if (docCurrent.company.value == "")
		{
		docCurrent.company.focus()
		strMissingFields[strMissingFields.length] = "company"
		}

	if (docCurrent.From.value == "")
		{
		docCurrent.From.focus()
		strMissingFields[strMissingFields.length] = "name"
		}

	return strMissingFields;
}

//******************************************************************************************

function validateResumeForm(docCurrent, strMissingFields) {

// Purpose: 	This function validates the Resume Form
//
// Inputs:  	docCurrent - the current form being validated
//		strMissingFields - an array of missing fields already found
//
// Returns: 	The updated array of missing fields
//
// Created By:	Steve Jeske, Kryos Systems Associates, Sept 30/2000

	if (docCurrent.phone.value == "")
		{
		docCurrent.phone.focus()
		strMissingFields[strMissingFields.length] = "phone number"
		}
		
	if (docCurrent.country.value == "")
		{
		docCurrent.country.focus()
		strMissingFields[strMissingFields.length] = "country"
		}		

	if (docCurrent.pcode.value == "")
		{
		docCurrent.pcode.focus()
		strMissingFields[strMissingFields.length] = "postal/zip code"
		}

	if (docCurrent.city.value == "")
		{
		docCurrent.city.focus()
		strMissingFields[strMissingFields.length] = "city"
		}

	if (docCurrent.AddressL1.value == "")
		{
		docCurrent.AddressL1.focus()
		strMissingFields[strMissingFields.length] = "mailing address"
		}

	if (docCurrent.From.value == "")
		{
		docCurrent.From.focus()
		strMissingFields[strMissingFields.length] = "name"
		}

	return strMissingFields;
}

//******************************************************************************************

function validateGraphicForm(docCurrent, strMissingFields) {

// Purpose: 	This function validates the Graphic Form
//
// Inputs:  	docCurrent - the current form being validated
//		strMissingFields - an array of missing fields already found
//
// Returns: 	The updated array of missing fields
//
// Created By:	Steve Jeske, Kryos Systems Associates, Sept 30/2000

	if (docCurrent.graphictext.value == "")
		{
		docCurrent.graphictext.focus()
		strMissingFields[strMissingFields.length] = "alternate text"
		}

	if (docCurrent.graphictype.selectedIndex == 0)
	{
		docCurrent.graphictype.focus()
		strMissingFields[strMissingFields.length] = "graphic type"
	}

	return strMissingFields;
}

//******************************************************************************************

function validateHelpForm(docCurrent, strMissingFields) {

// Purpose: 	This function validates the Help Form
//
// Inputs:  	docCurrent - the current form being validated
//		strMissingFields - an array of missing fields already found
//
// Returns: 	The updated array of missing fields
//
// Created By:	Steve Jeske, Kryos Systems Associates, Sept 30/2000

	if (docCurrent.key.value == "")
	{
		docCurrent.key.focus()
		strMissingFields[strMissingFields.length] = "keyword"
	}

	// Checks to make sure the synopsis has been entered ...

	if (docCurrent.synopsis.value == "")
	{
		docCurrent.synopsis.focus()
		strMissingFields[strMissingFields.length] = "page synopsis"
	}

	// Checks to make sure the subject has been entered ...

	if (docCurrent.subject.value == "")
	{
		docCurrent.subject.focus()
		strMissingFields[strMissingFields.length] = "help title"
	}

	if (docCurrent.category.selectedIndex == 0)
	{
		docCurrent.category.focus()
		strMissingFields[strMissingFields.length] = "help category"
	}

	return strMissingFields;
}

//******************************************************************************************

function validateKeywordForm(docCurrent, strMissingFields) {

// Purpose: 	This function validates the Keyword Form
//
// Inputs:  	docCurrent - the current form being validated
//		strMissingFields - an array of missing fields already found
//
// Returns: 	The updated array of missing fields
//
// Created By:	Steve Jeske, Kryos Systems Associates, Sept 30/2000

	if (docCurrent.subject.value == "")
	{
		docCurrent.subject.focus()
		strMissingFields[strMissingFields.length] = "keyword entry"
	}

	if (docCurrent.categories.selectedIndex == 0)
	{
		docCurrent.categories.focus()
		strMissingFields[strMissingFields.length] = "keyword name"
	}

	return strMissingFields;
}

//******************************************************************************************

function validateAttachmentForm(docCurrent, strMissingFields) {

// Purpose: 	This function validates the Attachment Form
//
// Inputs:  	docCurrent - the current form being validated
//		strMissingFields - an array of missing fields already found
//
// Returns: 	The updated array of missing fields
//
// Created By:	Steve Jeske, Kryos Systems Associates, Sept 30/2000

	if (docCurrent.Subject.value == "")
	{
		docCurrent.Subject.focus()
		strMissingFields[strMissingFields.length] = "file description"
	}

	if (docCurrent.filetype.selectedIndex == 0)
	{
		docCurrent.filetype.focus()
		strMissingFields[strMissingFields.length] = "type of attachment"
	}

	return strMissingFields;
}

//******************************************************************************************

function ResetGraphic() {

// Purpose: 	This function resets the graphics information on the subform .sfGraphics
//
// Inputs:  	None
//
// Returns: 	None
//
// Created By:	Steve Jeske, Kryos Systems Associates, Sept 28/2000

	var docCurrent = document.forms[0];

	docCurrent.graphicname.selectedIndex = 0;

	ResetRadioField(docCurrent.aligngraphic);
	ResetRadioField(docCurrent.placegraphic);

}

//******************************************************************************************

function determineLanguage() {
//    
// Description:	This function determines the previous language setting and
//		directs appropriately
//     
// Parameters:	none
//
// Returns:	None
//                         
// Created by:	Steve Jeske, Kryos Systems Associates, Sept 19/2000

	// Determine if changing language ...

	if (getCookie("ChangeLang")!="true") {

		var lang = getCookie("Lang");

		// If English goto English site ...

//		if (lang=="English") {
//			location = location.href + "/.pgSITEMAP!OpenPage";
//			return;
//		}

		// If French goto French site ...

//		if (lang=="French") {
//			location = "";
//			return;
//		}
	}
}

//******************************************************************************************

function setRFIUserInformation(form) {
//    
// Description:	This sets the users information in a temp cookie in case needed again
//     
// Parameters:	form - form to use 
//
// Returns:	None
//                         
// Created by:	Steve Jeske, Kryos Systems Associates, Sept 19/2000

	// Set cookie string ...
	
	var aString = form.From.value + "#" + form.company.value + "#" + form.AddressL1.value + "#"
	
	aString += form.AddressL2.value + "#" + form.AddressL3.value + "#" + form.phone.value + "#"
	aString += form.emailadr.value + "#" + form.city.value + "#" + form.prov.selectedIndex + "#"
	aString += form.pcode.value + "#" + form.country.value + "#" + form.fax.value + "#"

	aString = escape(aString);

	// Create cookie ...
	
	setTempCookie("RFIUserInfo", aString);
}

//******************************************************************************************

function getRFIUserInformation() {
//    
// Description:	This used to get the users information if it has been set
//     
// Parameters:	None
//
// Returns:	None
//                         
// Created by:	Steve Jeske, Kryos Systems Associates, Sept 19/2000

	// if document is being created exit ...
	
	if (location.href.indexOf("!OpenForm") == -1 ) {
		return false;
	}

	// Get cookie ...
		
	var aString = getCookie("RFIUserInfo");

	// if no cookie exit ...
	
	if (aString == "") {
		return false;
	}
	
	form=document.forms[0];
	
	var i = 0;
	var cEnd=0;
	var cArray = new Array();

	// Parse out parameters in cookie ...
	
	while (aString.length!=0) {
		cEnd = aString.indexOf("#");
		cArray[i] = aString.substring(0,cEnd);
		aString = aString.substring(cEnd+1, aString.length);
		i++
	}

	// Assign cookie values to form components ...
	
	form.From.value = cArray[0]
	form.company.value = cArray[1]
	form.AddressL1.value	= cArray[2]
	form.AddressL2.value = cArray[3]
	form.AddressL3.value = cArray[4]
	form.phone.value = cArray[5]
	form.emailadr.value = cArray[6]
	form.city.value = cArray[7]
	form.prov.selectedIndex = parseInt(cArray[8])
	form.pcode.value = cArray[9]
	form.country.value = cArray[10]
	form.fax.value = cArray[11]
		
}

//******************************************************************************************