function useraction(loc){
	switch(loc){
		case "register":
			goto = "http://totallyadd.com/forum/bb-login.php";
			break;
		case "profile":
			goto = "http://totallyadd.com/forum/profile.php?id="+vd_uid;
			break;
		default:
			goto = "error";
			break;
	}
	if(goto == "error"){
		alert(loc);
	} else {
		window.location.href = goto;
	}
}
function set_test_score(score){
	jQuery.ajax({
		type: "GET",
		data: "uid="+vd_uid+"&score="+score+"&sid="+Math.random(),
		url: pathtopage+"/vdoc.php",
		success: function(html){
			useraction(html);
		},
		error:function (xhr, ajaxOptions, thrownError){
			alert(xhr.status+"\n"+thrownError);
		}
	});
}