


//this is used for email subscri
function checkForm() {
 email = document.thisform.email.value;
 if (email.indexOf("@") == -1 || email.indexOf(".") == -1) {
  alert ("Please enter a valid email address.");
  return false;
 } else return true;
 
}

//This function confirms a deletion. You can pass a description of what you want deleted
function confirmThis(description)
{
	if (description == null)
		msg = "Are you sure you want to delete this item?"
	else
		msg = description
	fullmsg = msg
	if (confirm(fullmsg))
	return true; 
	else return false;
}  	
//This function pulls up a help screen based on the smocid passed to it. Use onClick="return help(#smocid#)"
function help(smocid) {
	urlstring = "help.cfm?smocid=" + smocid;
	helpwin=window.open(urlstring, "TempWindow", 			"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,width=600,height=400");
	helpwin=window.open(urlstring, "TempWindow", 			"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,width=600,height=400");
	return false;
}
function checkThis()
{}
//This function updates the fieldschanged text box in the form for logging. It creates a comman seperated list of fields that were changed
function logChange(pForm,pField){
	if (pForm.fieldschanged.value == '') 
		comma = ''
	else 
		comma = ','
	pForm.fieldschanged.value = pForm.fieldschanged.value + comma + pField;
}



