// Support Script (745)
function subAwithBinC(a,b,c)
{

	var i = c.indexOf(a);
	var l = b.length;

	while (i != -1)	{
		c = c.substring(0,i) + b + c.substring(i + a.length,c.length);
  i += l
		i = c.indexOf(a,i);
	}
	return c;

}
// Support Script (740)
function Validate(stopOnFailure)
{
	var ErrorMsg = "";
	var i
	var msg
	var tofocus = true;
	var ErrorMsg = "";
	
	// Go through the Validate Array that may or may not exist
	// and call the Validate function for all elements that have one.
	if (document.ValidateArray)
	{
		for (i = 0; i < document.ValidateArray.length; i ++)
		{
			msg = eval( document.ValidateArray[i] + ".Validate()")
			if (msg != "")
			{
				ErrorMsg += "\n\n" + document.ValidateArray[i] + ":  " + msg;
				if (tofocus) 
				{
					eval(document.ValidateArray[i] + ".focus()")
					tofocus = false;
				}
				
				if (stopOnFailure == "1") return ErrorMsg;
			}
  	}
  }
	return ErrorMsg;
}

function ImageButton1_onMouseOver() {
DynaImage1.setIndex("1")
 }
function _ImageButton1_onMouseOver() { if (ImageButton1) return ImageButton1.onMouseOver(); }
function ImageButton1_onMouseOut() {
DynaImage1.setIndex("0")
 }
function _ImageButton1_onMouseOut() { if (ImageButton1) return ImageButton1.onMouseOut(); }
function ImageButton2_onMouseOver() {
DynaImage1.setIndex("2")
 }
function _ImageButton2_onMouseOver() { if (ImageButton2) return ImageButton2.onMouseOver(); }
function ImageButton2_onMouseOut() {
DynaImage1.setIndex("0")
 }
function _ImageButton2_onMouseOut() { if (ImageButton2) return ImageButton2.onMouseOut(); }
function ImageButton3_onMouseOver() {
DynaImage1.setIndex("3")
 }
function _ImageButton3_onMouseOver() { if (ImageButton3) return ImageButton3.onMouseOver(); }
function ImageButton3_onMouseOut() {
DynaImage1.setIndex("0")
 }
function _ImageButton3_onMouseOut() { if (ImageButton3) return ImageButton3.onMouseOut(); }
function ImageButton4_onMouseOver() {
DynaImage1.setIndex("4")
 }
function _ImageButton4_onMouseOver() { if (ImageButton4) return ImageButton4.onMouseOver(); }
function ImageButton4_onMouseOut() {
DynaImage1.setIndex("0")
 }
function _ImageButton4_onMouseOut() { if (ImageButton4) return ImageButton4.onMouseOut(); }
function ImageButton5_onMouseOver() {
DynaImage1.setIndex("5")
 }
function _ImageButton5_onMouseOver() { if (ImageButton5) return ImageButton5.onMouseOver(); }
function ImageButton5_onMouseOut() {
DynaImage1.setIndex("0")
 }
function _ImageButton5_onMouseOut() { if (ImageButton5) return ImageButton5.onMouseOut(); }
function ImageButton6_onMouseOver() {
DynaImage1.setIndex("6")
 }
function _ImageButton6_onMouseOver() { if (ImageButton6) return ImageButton6.onMouseOver(); }
function ImageButton6_onMouseOut() {
DynaImage1.setIndex("0")
 }
function _ImageButton6_onMouseOut() { if (ImageButton6) return ImageButton6.onMouseOut(); }
function ImageButton7_onMouseOver() {
DynaImage1.setIndex("7")
 }
function _ImageButton7_onMouseOver() { if (ImageButton7) return ImageButton7.onMouseOver(); }
function ImageButton7_onMouseOut() {
DynaImage1.setIndex("0")
 }
function _ImageButton7_onMouseOut() { if (ImageButton7) return ImageButton7.onMouseOut(); }
function List1__onChange() {
var v = List1.getSelectedValue();
if (v.length > 1) 
{ 
    Form1T0.setAction(subAwithBinC(" ", "%20", v));

    // If there is no onSubmithander the return value is null
    // If there is a validation handler it returns true to submit
    // or false to not submit
    Result = Form1T0.onSubmit();
    if (Result==null || Result==true)
        Form1T0.submit();
}
 }
function _List1__onChange() { if (List1) return List1.onChange(); }
function List2__onChange() {
var v = List2.getSelectedValue();
if (v.length > 1) 
{ 
    Form1T0.setAction(subAwithBinC(" ", "%20", v));

    // If there is no onSubmithander the return value is null
    // If there is a validation handler it returns true to submit
    // or false to not submit
    Result = Form1T0.onSubmit();
    if (Result==null || Result==true)
        Form1T0.submit();
}
 }
function _List2__onChange() { if (List2) return List2.onChange(); }
function Text8_onClick() {
emailink.setValue("urls",url.getText());
var addChar = "?" 
var j
var okToSubmit = false;

if ("".length > 1)
{
    Form1T0.setAction(subAwithBinC(" ", "%20", ""));
}

// execute the onSubmit() event handler and try to 
// determine if it already validated the form
Result = Form1T0.onSubmit();

//   If there is no onSubmithander the return value is null
//   If there is a validation handler it returns true to submit
//   or false to not submit
if (Result==null)  // there is no validation already defined
{
    if ("0" == "1")
    {
        Result = Validate("0"); // don't stop on first error
        if (Result == "") okToSubmit = true;
        else alert("The form could not be submitted:" + Result);
    }
    else okToSubmit = true;
}
else // there is a validation already defined
{
    if (Result==true)
        okToSubmit = true;
}

if (okToSubmit) 
{
    // We have to
    // put the source in the query string so the generic database contracts
    // still work.

    // NOTE: this only works if the method of the form is POST


    act = Form1T0.getAction();
    if (act.indexOf("?") != -1)
    {    
        addChar = "&"
    }

    act += addChar + "Text8=1"
    Form1T0.setAction(act);


    Form1T0.submit();
}
 }
function _Text8_onClick() { if (Text8) return Text8.onClick(); }


