751 lines
20 KiB
Plaintext
751 lines
20 KiB
Plaintext
##DELETELISTSET
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help.html', 'help',
|
|
'width=650,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
|
|
function proceed(action_updt)
|
|
{ document.action_updt.proceeddel.value='1';
|
|
}
|
|
function canceldel(action_updt)
|
|
{ document.action_updt.proceeddel.value='0';
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
##DELETELISTSET_END
|
|
##ACTION_PARAM
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help.html', 'help',
|
|
'width=650,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
|
|
function clearForm(action_updt)
|
|
{ action_updt.user_name.value= "";
|
|
action_updt.action_timeout.value= "";
|
|
action_updt.dsmthrottle.value= "";
|
|
action_updt.retryt.value= "";
|
|
}
|
|
|
|
function isPosInt(inputVal)
|
|
{ var inputStr = inputVal.toString()
|
|
for(var i = 0;i < inputStr.length; i++)
|
|
{ var oneChar = inputStr.charAt(i);
|
|
if(oneChar < "0" || oneChar > "9") return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
function isTimeCheck(timeout_t)
|
|
{ if(!isPosInt(timeout_t) || ((ans = timeout_t % 5) != 0)) return false;
|
|
return true;
|
|
}
|
|
|
|
function verifyData(action_updt)
|
|
{ var act_timeout = ""
|
|
var ato = ""
|
|
var dsmth_act = ""
|
|
var dsmth = ""
|
|
var retry_act = ""
|
|
var rtrt = ""
|
|
var uname = "";
|
|
var u_name = "";
|
|
if(action_updt.action_timeout.value != "")
|
|
{ act_timeout = action_updt.action_timeout.value;
|
|
action_updt.action_timeout.focus();
|
|
if(!isTimeCheck(act_timeout))
|
|
{ alert("Timeout must be a positive number divisible of 5");
|
|
return false;
|
|
}
|
|
ato = "\nTimeout = " + act_timeout;
|
|
}
|
|
if(action_updt.dsmthrottle.value != "")
|
|
{ dsmth_act = action_updt.dsmthrottle.value
|
|
action_updt.dsmthrottle.focus()
|
|
if(!isPosInt(dsmth_act))
|
|
{ alert("Number of times event must be registered before the action will be taken must be a positive number")
|
|
return false;
|
|
}
|
|
dsmth = "\nNumber of times event must be registered before the action will be taken = " + dsmth_act
|
|
}
|
|
if(action_updt.retryt.value != "")
|
|
{ retry_act = action_updt.retryt.value;
|
|
action_updt.retryt.focus();
|
|
if((!isPosInt(retry_act)) || (retry_act >= 24))
|
|
{ alert("Retry times must be a positive number and less then 24");
|
|
return false;
|
|
}
|
|
if(retry_act > 4)
|
|
rtrt = "\nNumber of retry times = " + retry_act + "\n\nWARNING: It is not recomended to set retry for more then 4 times";
|
|
else rtrt = "\nNumber of retry times = " + retry_act;
|
|
}
|
|
if(act_timeout == "" && dsmth_act == "" && dsmfreq_act == "" && retry_act == "" && action_updt.user_name.value == "")
|
|
{ alert("Nothing to update");
|
|
return false;
|
|
}
|
|
if(action_updt.user_name.value == "")
|
|
{ alert("No entry for \"username\".");
|
|
action_updt.user_name.focus();
|
|
return false;
|
|
}
|
|
if(act_timeout == "")
|
|
{ alert("No entry for \"action timeout\".");
|
|
return false;
|
|
}
|
|
if(dsmth_act == "")
|
|
{ alert("No entry for \"the number of times that the event must be registered\".");
|
|
return false;
|
|
}
|
|
if(retry_act == "")
|
|
{ alert("No entry for \"the number of retry times\".");
|
|
return false;
|
|
}
|
|
uname = action_updt.user_name.value;
|
|
action_updt.user_name.focus();
|
|
if(uname != "")
|
|
u_name= "\nExecute this action as = " + uname;
|
|
final_act = "\n" + u_name + ato + dsmth + rtrt;
|
|
return window.confirm("You entered the following action configuration for update: " + final_act);
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
##ACTION_PARAM_END
|
|
##GLOBAL
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help.html', 'map',
|
|
'width=550,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
|
|
function verifyLogging(logging_event)
|
|
{ choice = -1;
|
|
for(i = 0; i < logging_event.GLOBAL_LOGGING_FLAG.length; i++)
|
|
{ if(logging_event.GLOBAL_LOGGING_FLAG[i].checked)
|
|
choice = i;
|
|
}
|
|
if(choice == -1)
|
|
{ alert("You must disable or enable loggin.");
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
function verifyFilter(filter_event)
|
|
{ choice = -1;
|
|
for(i = 0; i < filter_event.GLOBAL_THROTTLING_FLAG.length; i++)
|
|
{ if(filter_event.GLOBAL_THROTTLING_FLAG[i].checked)
|
|
choice=i;
|
|
}
|
|
if(choice == -1)
|
|
{ alert("You must disable or enable filtering.");
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
function verifyAction(action_event)
|
|
{ choice = -1;
|
|
for(i = 0; i < action_event.GLOBAL_ACTION_FLAG.length; i++)
|
|
{ if(action_event.GLOBAL_ACTION_FLAG[i].checked)
|
|
choice=i;
|
|
}
|
|
if(choice == -1)
|
|
{ alert("You must disable or enable actions.");
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
##GLOBAL_END
|
|
##EVENTREPORTBYCLASS
|
|
<script language="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help.html', 'help',
|
|
'width=650,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
|
|
function verify_submitvals()
|
|
{ var class_sel = document.EventsByClass.ev_class.selectedIndex;
|
|
if (class_sel == -1)
|
|
{ alert("Please select a class.");
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
//-->
|
|
</script>
|
|
##EVENTREPORTBYCLASS_END
|
|
##EVENTREPORTSPECIFIC
|
|
<script language="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help.html', 'help',
|
|
'width=650,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
|
|
function verify_submitvals() {
|
|
var event_sel = document.specificEvent.event_type.selectedIndex;
|
|
if (event_sel == -1) {
|
|
alert("Please select an event.");
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
//-->
|
|
</script>
|
|
##EVENTREPORTSPECIFIC_END
|
|
##ACTIONSETUP
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help.html', 'help',
|
|
'width=650,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
|
|
function verify_submitvals()
|
|
{ var action_sel = document.Action.actionid.selectedIndex;
|
|
if (action_sel == -1)
|
|
{ alert("Please choose an action setup.");
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
//-->
|
|
</SCRIPT>
|
|
##ACTIONSETUP_END
|
|
##EVENT_SETUP
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help.html', 'help',
|
|
'width=650,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
function verify_submitvals()
|
|
{ var class_sel = document.viewEvent.ev_class.selectedIndex;
|
|
if (class_sel == -1)
|
|
{ alert("Please choose an event class.");
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
##EVENT_SETUP_END
|
|
##EVENT_TYPE_SETUP
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help.html', 'help',
|
|
'width=650,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
|
|
function verify_submitvals()
|
|
{ var class_sel = document.viewEvent.event_type.selectedIndex;
|
|
if (class_sel == -1)
|
|
{ alert("Please choose an event.");
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
##EVENT_TYPE_SETUP_END
|
|
##EVENT_UPDT_SETUP
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help.html', 'help',
|
|
'width=650,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
|
|
function submitType(ChooseType)
|
|
{ typeChoice = ChooseType.event_type.selectedIndex;
|
|
if(typeChoice == -1)
|
|
{ alert("You must choose at least one event to proceed");
|
|
return false;
|
|
}
|
|
var result = "";
|
|
var cnt = 0;
|
|
for(i = 0;i < ChooseType.event_type.length;i++)
|
|
{ if(ChooseType.event_type.options[i].selected)
|
|
{ result += "\n"+ChooseType.event_type.options[i].text;
|
|
cnt++;
|
|
}
|
|
}
|
|
if(cnt == 1)
|
|
{
|
|
document.ChooseType.pageselect.value='1';
|
|
return true;
|
|
}
|
|
else
|
|
{
|
|
document.ChooseType.pageselect.value='2';
|
|
return true;
|
|
}
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
##EVENT_UPDT_SETUP_END
|
|
##EVENT_UPDT_SINGLE
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help.html', 'help',
|
|
'width=650,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
|
|
function isPosInt(inputVal)
|
|
{ var inputStr = inputVal.toString()
|
|
for(var i = 0;i < inputStr.length; i++)
|
|
{ var oneChar = inputStr.charAt(i);
|
|
if(oneChar < "0" || oneChar > "9") return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
function clearForm(updtEvent)
|
|
{ for(var i = 0; i < updtEvent.enable_event.length; i++)
|
|
updtEvent.enable_event[i].checked=false;
|
|
updtEvent.thcount.value = "";
|
|
if(updtEvent.act_id.value != "absent")
|
|
{ for(i = 0; i < updtEvent.actionid.length; i++)
|
|
updtEvent.actionid.options[i].selected = false;
|
|
}
|
|
}
|
|
|
|
function verifyData(form)
|
|
{ var evnt_registration = ""
|
|
var throttle_cnt = ""
|
|
var action_result = ""
|
|
var th_cnt = ""
|
|
choice_reg = -1
|
|
for(var i = 0; i < form.enable_event.length; i++)
|
|
{ if(form.enable_event[i].checked)
|
|
{ evnt_registration = form.enable_event[i].value;
|
|
choice_reg = i;
|
|
}
|
|
}
|
|
if(evnt_registration == "0")
|
|
{ msg1 = "You are about to disable event registration with SGI Embedded Support Partner Database.\nAre you sure you want to proceed?";
|
|
if(form.thcount.value == "")
|
|
form.thcount.value = "0";
|
|
else
|
|
{ if(!isPosInt(form.thcount.value))
|
|
{ alert("Incorrect entry in \"Number of event occurrences\".\nNumber should be a whole positive number.");
|
|
return false;
|
|
}
|
|
}
|
|
return window.confirm(msg1);
|
|
}
|
|
else ev_reg = "\nEvent = Register";
|
|
throttle_cnt = form.thcount.value;
|
|
form.thcount.focus();
|
|
if(throttle_cnt != "")
|
|
{ if(!isPosInt(throttle_cnt))
|
|
{ alert("Incorrect entry in \"Number of event occurrences\".\nNumber should be a whole positive number.");
|
|
return false;
|
|
}
|
|
th_cnt = "\nNumber of event occurrences = "+throttle_cnt;
|
|
}
|
|
var actid = form.act_id.value;
|
|
if(actid != "absent")
|
|
{ for(i = 0;i < form.actionid.length;i++)
|
|
{ if(form.actionid.options[i].selected) action_result += "\n"+form.actionid.options[i].text;
|
|
}
|
|
}
|
|
if(choice_reg == -1)
|
|
{ msg1 = "You should choose if you want this event to be registered or not.";
|
|
alert(msg1);
|
|
return false;
|
|
}
|
|
if(throttle_cnt == "")
|
|
{ alert("You must enter the number of event occurrences.");
|
|
return false;
|
|
}
|
|
final_res = "\n" + ev_reg + th_cnt + action_result;
|
|
return window.confirm("You entered the following event configuration: " + final_res);
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
##EVENT_UPDT_SINGLE_END
|
|
##EVENT_UPDT_MULTI
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help.html', 'help',
|
|
'width=650,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
|
|
function clearForm(updtEvent)
|
|
{ for(i = 0; i < updtEvent.enable_event.length; i++)
|
|
updtEvent.enable_event[i].checked=false;
|
|
updtEvent.thcount.value = "";
|
|
}
|
|
|
|
function isPosInt(inputVal)
|
|
{ var inputStr = inputVal.toString()
|
|
for(var i = 0;i < inputStr.length; i++)
|
|
{ var oneChar = inputStr.charAt(i);
|
|
if(oneChar < "0" || oneChar > "9") return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
function verifyData(form)
|
|
{ var evnt_registration = ""
|
|
var throttle_cnt = ""
|
|
var th_cnt = ""
|
|
choice_reg = -1
|
|
for(i = 0; i < form.enable_event.length; i++)
|
|
{ if(form.enable_event[i].checked)
|
|
{ evnt_registration = form.enable_event[i].value;
|
|
choice_reg = i;
|
|
}
|
|
}
|
|
if(evnt_registration == "0")
|
|
{ msg1 = "You are about to disable event registration with SGI Embedded Support Partner Database.\nAre you sure you want to proceed?"
|
|
return window.confirm(msg1);
|
|
}
|
|
else ev_reg = "\nEvent = Register";
|
|
if((choice_reg == -1) && (form.thcount.value == ""))
|
|
{ alert("You did not make any changes")
|
|
return false;
|
|
}
|
|
if(form.thcount.value != "")
|
|
{ throttle_cnt = form.thcount.value;
|
|
form.thcount.focus();
|
|
if(!isPosInt(throttle_cnt))
|
|
{ alert("Incorrect entry in \"Number of event occurrences\" field");
|
|
return false;
|
|
}
|
|
th_cnt = "\nNumber of event occurrences = "+throttle_cnt;
|
|
}
|
|
final_res = "\n" + ev_reg + th_cnt;
|
|
return window.confirm("You entered the following event configuration: " + final_res)
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
##EVENT_UPDT_MULTI_END
|
|
##EVENT_UPDT_ACT_AUD
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help.html', 'help',
|
|
'width=650,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
|
|
function findDel(evactSearch)
|
|
{ document.evactSearch.submit_type.value='2'
|
|
}
|
|
|
|
function findAdd(evactSearch)
|
|
{ document.evactSearch.submit_type.value='1'
|
|
}
|
|
|
|
function findUpdt(evactSearch)
|
|
{ document.evactSearch.submit_type.value='0'
|
|
}
|
|
|
|
function submitType(evactSearch)
|
|
{ var result = "";
|
|
typeChoice = evactSearch.event_type.selectedIndex;
|
|
if(typeChoice == -1)
|
|
{ alert("You must choose at least one event to proceed");
|
|
return false;
|
|
}
|
|
for(i = 0;i < evactSearch.event_type.length;i++)
|
|
{ if(evactSearch.event_type.options[i].selected)
|
|
result += "\n" + evactSearch.event_type.options[i].text;
|
|
}
|
|
if(document.evactSearch.submit_type.value == "2")
|
|
{ msg1 = "You are about to delete the action.\nWould you like to proceed?";
|
|
return window.confirm(msg1)
|
|
}
|
|
if(document.evactSearch.submit_type.value == "1")
|
|
document.evactSearch.multiselect.value='1';
|
|
if(document.evactSearch.submit_type.value == "0")
|
|
document.evactSearch.multiselect.value='0';
|
|
return true;
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
##EVENT_UPDT_ACT_AUD_END
|
|
##EVENT_UPDT_ACT_ADDLIST
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help.html', 'help',
|
|
'width=650,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
|
|
function verifyData(evactAdd)
|
|
{ evactChoice = evactAdd.actionid.selectedIndex;
|
|
if(evactChoice == -1)
|
|
{ alert("You must choose at least one action to add to the event");
|
|
return false;
|
|
}
|
|
var result = "";
|
|
for(i = 0;i < evactAdd.actionid.length;i++)
|
|
{ if(evactAdd.actionid.options[i].selected)
|
|
result += "\n" + evactAdd.actionid.options[i].text;
|
|
}
|
|
msg1 = "You are about to add the following action(s) to the selected event(s):\n" + result;
|
|
return window.confirm(msg1);
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
##EVENT_UPDT_ACT_ADDLIST_END
|
|
##EVENT_UPDT_ACT_UPDLIST
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help.html', 'help',
|
|
'width=650,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
|
|
function verifyData(evactAction)
|
|
{ typeChoice = evactAction.actionid.selectedIndex;
|
|
if(typeChoice == -1)
|
|
{ alert("You must choose at least one event to proceed");
|
|
return false;
|
|
}
|
|
msg1 = "You are about to replace the action with a " + evactAction.actionid.options[typeChoice].text + " action";
|
|
return window.confirm(msg1);
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
##EVENT_UPDT_ACT_UPDLIST_END
|
|
##EVENT_ADD_INFO
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help.html', 'help',
|
|
'width=650,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
|
|
function clearForm(form)
|
|
{ for(var i = 0; i < form.enable_event.length; i++)
|
|
form.enable_event[i].checked=false;
|
|
form.thcount.value = "";
|
|
if(form.act_id.value != "absent")
|
|
{ for(i = 0; i < form.actionid.length; i++)
|
|
form.actionid.options[i].selected = false;
|
|
}
|
|
}
|
|
|
|
function isPosInt(inputVal)
|
|
{ var inputStr = inputVal.toString()
|
|
for(var i = 0;i < inputStr.length; i++)
|
|
{ var oneChar = inputStr.charAt(i);
|
|
if(oneChar < "0" || oneChar > "9") return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
function verifyData(eventadd)
|
|
{ var evnt_registration = ""
|
|
var throttle_cnt = ""
|
|
var action_result = ""
|
|
var th_cnt = ""
|
|
var choice_reg = -1
|
|
for(i = 0; i < document.eventadd.enable_event.length; i++)
|
|
{ if(document.eventadd.enable_event[i].checked)
|
|
{ evnt_registration = document.eventadd.enable_event[i].value;
|
|
choice_reg = i;
|
|
}
|
|
}
|
|
if(evnt_registration == "0")
|
|
{ msg1 = "You are about to disable event registration with SGI Embedded Support Partner Database.\nAre you sure you want to proceed?";
|
|
if(document.eventadd.thcount.value == "")
|
|
document.eventadd.thcount.value = "1";
|
|
else
|
|
{ if(!isPosInt(document.eventadd.thcount.value))
|
|
{ alert("Incorrect entry in \"Number of event occurrences\" field");
|
|
return false;
|
|
}
|
|
}
|
|
return window.confirm(msg1);
|
|
}
|
|
else ev_reg = "\nEvent = Register";
|
|
throttle_cnt = document.eventadd.thcount.value;
|
|
document.eventadd.thcount.focus();
|
|
if(throttle_cnt != "")
|
|
{ if(!isPosInt(throttle_cnt))
|
|
{ alert("Incorrect entry in \"Number of event occurrences\" field");
|
|
return false;
|
|
}
|
|
th_cnt = "\nNumber of event occurrences = "+throttle_cnt;
|
|
}
|
|
var actid = document.eventadd.act_id.value;
|
|
if(actid != "absent")
|
|
{ for(i = 0;i < document.eventadd.actionid.length;i++)
|
|
{ if(document.eventadd.actionid.options[i].selected) action_result += "\n"+document.eventadd.actionid.options[i].text;
|
|
}
|
|
}
|
|
if(choice_reg == -1)
|
|
{ msg1 = "You should choose if you want this event to be registered or not."; alert(msg1);
|
|
return false;
|
|
}
|
|
if(throttle_cnt == "")
|
|
{ alert("You must enter the number of event occurrences.");
|
|
return false;
|
|
}
|
|
final_res = "\n" + ev_reg + th_cnt + action_result;
|
|
return window.confirm("You entered the following event configuration: " + final_res);
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
##EVENT_ADD_INFO_END
|
|
##EVENT_DELETE
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help.html', 'help',
|
|
'width=650,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
|
|
function verifyData(delEvent)
|
|
{ choice = document.delEvent.event_type.selectedIndex;
|
|
var result = "";
|
|
for(i = 0;i < document.delEvent.event_type.length;i++)
|
|
{ if(document.delEvent.event_type.options[i].selected)
|
|
result += "\n" + document.delEvent.event_type.options[i].text;
|
|
}
|
|
if (choice == -1)
|
|
{
|
|
alert ("Choose event(s) to delete");
|
|
return false;
|
|
}
|
|
msg1 = "You are about to delete the following events:\n" + result;
|
|
return window.confirm(msg1);
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
##EVENT_DELETE_END
|
|
##SGM_EV_UPDT_TYPE
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help.html', 'help',
|
|
'width=650,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
|
|
function submitType(ChooseType)
|
|
{ var evchoice = document.ChooseType.event_type.selectedIndex;
|
|
if(evchoice == -1)
|
|
{ alert("You must choose an event to proceed");
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
##SGM_EV_UPDT_TYPE_END
|
|
##SGM_EV_UPDT_INFO
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help.html', 'help',
|
|
'width=650,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
|
|
function clearForm(form)
|
|
{ document.ChooseType.thcount.value = "";
|
|
document.ChooseType.actionid.selectedIndex = -1;
|
|
}
|
|
|
|
function verifyData(ChooseType)
|
|
{ var cnt = ChooseType.thcount.value
|
|
if(cnt == "")
|
|
{ alert("Enter the number of event occurrences prior to registration.");
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
##SGM_EV_UPDT_INFO_END
|
|
##SGM_EV_UPDT_CLASS
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
function showMap()
|
|
{ var map=window.open('/help.html', 'help',
|
|
'width=650,height=350,status=yes,scrollbars=yes,resizable=yes');
|
|
map.main=self;
|
|
map.main.name="sss_main";
|
|
map.focus();
|
|
}
|
|
|
|
function submitType(ChooseType)
|
|
{ var classChoice = document.ChooseType.ev_class.selectedIndex;
|
|
if(classChoice== -1)
|
|
{ alert("You must choose a class to proceed");
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
//-->
|
|
</SCRIPT>
|
|
##SGM_EV_UPDT_CLASS_end
|