<!--
// change the state to match the country
function SPonChange()
{
document.form.CN.value = document.form.SP.value.substring(0,2);
}

// change the state to blank if country is not US or Canada
function CNonChange()
{
if ( document.form.CN.value != "US" && document.form.CN.value != "CA" ) {
	document.form.SP.value="---";
}
}
// process the submit action
function doProcessing()  {
  document.getElementById('submitBtn').className = 'thide'; 
  document.getElementById('processing').className = 'tshow';

}


function popupPreview(urltxt, wid, high) 

{           

  wid+=0;

  high+=0;

  var flagvar=0;

  

  try{

            confirmWin.close();

            confirmWin=window.open(urltxt, "kwu", 

                         "height=" +high+ ",width="+wid+",directories=no,location=no,menubar=no," +

                         "resizable=yes,status=no,toolbar=no,scrollbars=yes");

      }

      catch(e)

      {

            confirmWin=window.open(urltxt, "kwu", 

                         "height=" +high+ ",width="+wid+",directories=no,location=no,menubar=no," +

                         "resizable=yes,status=no,toolbar=no,scrollbars=yes");

      }

 

  if (window.confirmWin)

  { 

    if (window.focus) 

    { 

      if ((navigator.appName.indexOf("Microsoft Internet Explorer")!=-1)

          &&

          (navigator.appVersion.indexOf("4.") != -1)

          &&

          (parent.length>0))

      { 

        window.confirmWin.close(); 

        flagvar=1;

        timevar = setTimeout("openit(urltxt)", 300);      

      }

      else

      {

        confirmWin.focus();

      }

    } 

    else

    {  

      if (navigator.appName.indexOf("Microsoft Internet Explorer") != -1)  // If this is a MSIE Browser

      {  

        if (navigator.appVersion.indexOf("3.") != -1)  // MSIE 3.x

        {

          if (isLoaded == true)

          {

            alert("If the large image does not pop up, press the 'Product Close-up' tab in your task bar, or locate the image browser behind your open window." );

            return;

          }

          else

          {

            alert("If the Site Menu bar does not pop up, press the 'Product Close-up' tab in your task bar, or locate the image browser behind your open window." );

            return;

          } 

        } 

      }

    }

  }          

  else

  {

    confirmWin = window.open(urltxt, "kwu", 

                             "height=" +high+ ",width="+wid+",directories=no,location=no,menubar=no," +

                   "resizeable=no,status=no,toolbar=no");

    var isLoaded = true;

  }

  

  // This is important for Netscape 2.0 to enable the opener property

  if (flagvar!=1)

  {

    if (confirmWin.opener == null)

    {

      confirmWin.opener = self;

    }

  }

  wid=0;

  high=0;

}
var doChange = "false";
function changeProgram() {
    
    var a3 = document.forms[0].A3.options[document.forms[0].A3.selectedIndex].value;
	if (a3 == '') return;
	var programsValues=[
	"CERTIFICATE - BUSINESS ADMINISTRATION",
	"CERTIFICATE - FINANCE",
	"CERTIFICATE - HR MANAGEMENT",
	"CERTIFICATE - INTERNATIONAL BUSINESS",
	"CERTIFICATE - LEADERSHIP",
	"CERTIFICATE - MIS",
	"CERTIFICATE - MARKETING",
	"CERTIFICATE - PROFESSIONAL ACCOUNTING",
	"CERTIFICATE - STRATEGY AND ECONOMICS",
	"MBA",
	"ACCOUNTING AND INFORMATION SYSTEMS",
	"E-COMMERCE",
	"FINANCE",
	"GLOBAL MANAGEMENT",
	"HUMAN RESOURCES MANAGEMENT",
	"HEALTH CARE ADMINISTRATION",
	"LEADERSHIP",
	"MANAGEMENT OF INFORMATION SYSTEMS",
	"MANAGEMENT OF TECHNOLOGY",
	"MARKETING",
	"PROFESSIONAL ACCOUNTING",
	"PROJECT MANAGEMENT",
	"RISK MANAGEMENT",
	"STRATEGY AND ECONOMICS"
	];
	var programText= [
"Certificate - Business Administration",
"Certificate - Finance",
"Certificate - HR Management",
"Certificate - International Business",
"Certificate - Leadership",
"Certificate - MIS",
"Certificate - Marketing",
"Certificate - Professional Accounting",
"Certificate - Strategy and Economics",
"MBA",
"MBA - Accounting and Information Systems",
"MBA - E-Commerce",
"MBA - Finance",
"MBA - Global Management",
"MBA - HR Management",
"MBA - Health Care Administration",
"MBA - Leadership",
"MBA - Management of Information Systems",
"MBA - Management of Technology",
"MBA - Marketing",
"MBA - Professional Accounting",
"MBA - Project Management",
"MBA - Risk Management",
"MBA - Strategy and Economics",
];
    if ( a3 == "Some College" || a3 == "Completed High School" ) {
    for(i=0;i<document.forms[0].A8.options.length;i++) {
		for(j=0;j<programsValues.length;j++){
			if(document.forms[0].A8.options[i].value==programsValues[j])
			{
				document.forms[0].A8.remove(i);
			}
		}	
    	}
		doChange="true";
	} else {
		if(doChange=="true");
		{
			for(j=0;j<programsValues.length;j++)
			{
				var newOptions = document.createElement("OPTION");
				newOptions.text=programText[j];
				newOptions.value=programsValues[j];
				document.forms[0].A8.options.add(newOptions);
			}	
			doChange="false";	
		}	
	}	
}
