function loadIndexProperties () {
}

function nonFormCSS() {
	var headerHeight = document.getElementById("headernoform").offsetHeight;
	var copyHeight = document.getElementById("pagecopynoform").offsetHeight;
	//document.getElementById("pagecopynoform").style.top=headerHeight;
	//document.getElementById("mainBoxnoform").style.height=copyHeight+headerHeight;
	//document.getElementById("footer").style.top=headerHeight+copyHeight;

}

function openWin(page) {
    var win_width = 518;
    var win_height = 500;
    var options = "scrollbars=yes, width=" + win_width + ", height=" + win_height;
    var win = window.open(page, 'MyWin', options);
    if (window.focus) { win.focus() }
 
}

function doProcessing() {
  document.getElementById('button').className = 'thide'; 	
  document.getElementById('processing').className = 'tshow';
}


function setCountryValue() {

	var stateValue = document.form.SP.value;
	if ( stateValue.indexOf("US") != -1 ) {
		document.form.CN.value='US';
 	} else if ( stateValue.indexOf("MX") != -1 ) {
		document.form.CN.value='MX';
	} else if ( stateValue.indexOf("CA") != -1 ) {
		document.form.CN.value='CA';
	} 

}

function setStateValue() {
	var countryValue = document.form.CN.value;
	var invalidCountry = true;
	if ( countryValue == "US" && countryValue == "CA" && countryValue == "MX" ) {
		invalidCountry = false;		
	}
	if ( invalidCountry ) {
		document.form.SP.value='---';
	}


}

