window.onerror=function(){ return true; }
function params(wut,qp,dflt){ dflt=(dflt==null)?'':dflt; try{r=unescape(wut.match(new RegExp(qp+"=+([^&;]*)"))[1]);}catch(qp){r=dflt;} return r; }
function gid(_id){ return document.getElementById(_id); }

// JavaScript Document
var whichChecked = "comment";

function radioChange(e) {
	whichChecked=e;
	divFlipper();
}
function divFlipper() {
	if(whichChecked == "comment") {
		document.getElementById('questionDiv').style.display = "none";
		document.getElementById('commentDiv').style.display = "block";
	} else {
		document.getElementById('commentDiv').style.display = "none";
		document.getElementById('questionDiv').style.display = "block";
	}
}

function checkTerms() {
gid('submitForm').disabled=(gid('termsAccept').checked==false);
}



function contactInit() {
	document.getElementById('termsAccept').checked = false;
	document.getElementById('commentbtn').checked = "checked";
	divFlipper();
	document.getElementById("OSOther").style.display = "none";
	document.getElementById("BrowserOther").style.display = "none";
	document.getElementById("ConnectionOther").style.display = "none";
	
	//option selection test
//	document.getElementById('BrowserSelect').options[3].selected = true;	
}

function dropdownChange(drop) {
	var thisDiv = drop.name + "Other";
	if (drop.value == "Other") {
		document.getElementById(thisDiv).style.display = "block";
	} else {
		document.getElementById(thisDiv).style.display = "none";
	}
}

//alert("I think connection is " + connection);
