function ShowWindow(ML){
		var URLStr="";
		URLStr = "/ADS/Launch.jsp?ML=" + ML;
		window.open(URLStr,"IndexWindow","top=0,left=0,height=666,width=1016,status=yes,toolbar=no,menubar=no,scrollbars=no,location=no,titlebar=no,resizable=yes");
        return false;
	}
	
function PostForm(uname,pass) {
		var form = document.createElement("form");    
		form.setAttribute("method", "post");    
		form.setAttribute("action", "http://www.architectsdesignstudio.com/ADS/Launch.jsp?ML=GP");   
		form.setAttribute("target", "IndexWindow")
	   
		var i=0;
		params=new Array("Submit",uname,pass,"GP");
		paramnames=new Array("cmdSubmit","txtName","txtPassword","ML");
		for(i=0;i<params.length;i++) {        
			var hiddenField = document.createElement("input");        
			hiddenField.setAttribute("type", "hidden");        
			hiddenField.setAttribute("name", paramnames[i]);        
			hiddenField.setAttribute("value", params[i]);        
			form.appendChild(hiddenField);    
		}
		document.body.appendChild(form);   
		window.open("","IndexWindow","top=0,left=0,height=666,width=1016,status=yes,toolbar=no,menubar=no,scrollbars=no,location=no,titlebar=no,resizable=yes");
		form.submit();
		return false;
	}

 function countryChanged()
 {
	var country = document.getElementById('Country').selectedIndex;
	var states = document.getElementById('State');
	var optionSpan = document.getElementById('optionText');
	if(country == 0){
		
		var options = ["","AL","AK","AR","AZ","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KA","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY"];
		optionSpan.innerHTML = "Please DO NOT e-mail product and service updates from Georgia-Pacific Gypsum.";
	}else
	{
		var options = ["","AB","BC","MB","NB","NL","NS","NU","NWT","ON","PE","QC","SK","YT"];
		optionSpan.innerHTML = "Please include me on e-mail updates about products and services from <span class='nobr'>Georgia-Pacific Gypsum</span>";
	}
	states.options.length = 0;
	var optionsLen = options.length;
	for(var i = 0; i < optionsLen; i++)
	{
		var state = options[i];
		states.options[states.options.length] = new Option(state, state);
	}
	states.reset();
	states.selectedIndex = -1;
}

