function openWin(url,name,w,h) {
	if(h === null){h = 300;}	//default
	if(w === null){w = 320;}	//default
	var winprops = "toolbar=no,width=" + w + ",height=" + h + ",directories=no,status=no,scrollbars=yes,resizable=yes,menubar=yes";
	var win = window.open(url,name,winprops);
	win.focus();
}

//Determine the number of characters inside a text box
function countStrokes(inputObj, maxLength){
	var errMsg = "You have entered too many characters. The maximum length is " + maxLength;
	var characters = inputObj.value.length;
	if (characters > maxLength){
	    //erase character that was added on last key stroke
		inputObj.value = inputObj.value.substring(0,maxLength);
		alert(errMsg);
	}
}