

function openWin(page) {

    var options = "scrollbars=yes, width=365, height=550";
    var win = window.open(page, 'MyWin', options);
    if (window.focus) {
        win.focus()
    }

  }

function openWinPrg(page) {

    var options = "scrollbars=yes, width=557, height=550";
    var win = window.open(page, 'MyWin', options);
    if (window.focus) {
        win.focus()
    }

  }
 function openWin1(page) {

    var options = "scrollbars=yes, width=780, height=700";
    var win = window.open(page, 'MyWin', options);
    if (window.focus) {
        win.focus()
    }

  }


function doProcessing() {
	document.getElementById('button').className = 'thide';
	document.getElementById('processing').className = 'tshow';
	//document.form.submit();
	/*if(navigator.userAgent.indexOf("Firefox")!=-1){
			window.location.reload( true );
	}*/
 }
						
 // change the state to Outside of US if country is not US or Canada
function CNonChange()
{
	var country = document.form.CN.value;
    if(country != "US" && country != "CA" && country != "--- Select One --")
        document.form.SP.value="Outside of US";
    else
        document.form.SP.value="--- Select One --";
}

// change the state to match the country
function SPonChange()
{
	var country = document.form.SP.value.substring(0,2);

	if(country == "US")  {
	
	document.form.CN.value = "US";

	} else if(country == "CA"){
		document.form.CN.value = "CA";

	} else {
			document.form.CN.value = "--- Select One --";
	}
}

//on click event for EductionLevel
function EducationLevelonClick()
{
	document.forms[0].elements['EduLevelFlag'].value = 'Y';
	document.form.submit();
}


function showLayer(layerToShow) {
	var layerValue = layerToShow;
	var idArray = layerArray();
	for (var i = 0; i < idArray.length; i++) {
		var idTmp = idArray[i];
		if (layerValue == idTmp) {
			document.getElementById(idTmp).style.display = "block";
		} else {
			document.getElementById(idTmp).style.display = "none";
		}
	}
}

