//<!--- Javascript --->
function cfm_myaction(u,m){
	if (confirm(m))
		self.location.href=u;
	}
	
function popwin_center(f,u,w,h,s,m,t){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	p = "width=" + w + ",height=" + h +  ",scrollbars=" + s + ",menubar=" + m + ",toolbar=" + t + ",top=" + TopPosition + ",left=" + LeftPosition;
	cometwin = window.open(u,f,p);
	}
	
function chk_pw(fm,p1,p2){
	var result = true;
	var objForm = document.forms[fm];
	if (objForm.elements[p1].value.length <= 0){
		alert("Please enter a password and try again.");
		result = false;
		}
	else if (objForm.elements[p1].value.length < 6){
		alert("Please make sure the password is at least 6 characters long and try again.");
		result = false;
		}
	else if (objForm.elements[p2].value.length <= 0){
		alert("Please retype password and try again.");
		result = false;
		}
	else if (objForm.elements[p2].value.length < 6){
		alert("Please make sure the retype password is at least 6 characters long and try again.");
		result = false;
		}
	else if (objForm.elements[p2].value!=objForm.elements[p1].value){
		alert("Please make sure both passwords are the same and try again.");
		result = false;
		}
	return result;
	}

	
function gotopage(url){
    var url = url.options[url.selectedIndex].value;
	window.location = ""+url+"";
}	
