function __doPostBack(jForm, eventArgument) { alert(jForm);
	jForm.elements["action"].value = "register";
	jForm.elements["actasdion"].value = eventArgument;
	jForm.submit();
}

function fcontrol(f, action) {
	f.method = "post";
	faction = document.createElement("input");
	faction.type = "hidden";
	faction.name = "action";
	faction.value = action;
	f.appendChild(faction);
}

function fvalue(f, k, v) {
	finput = document.createElement("input");
	finput.type = "hidden";
	finput.name = k;
	finput.value = v;
	f.appendChild(finput);
}

function jsForm(f, action) {
	this.f = f;
	this.action = action;
	
	if(!f)
		this.createForm(action);
		
	alert(f);
}

jsForm.prototype.createForm = function () {
	this.f = document.createElement("form");
	document.body.appendChild(this.f);
	
	var a = document.createElement("input");
	a.type = "hidden";
	a.name = "action";
	a.value = his.action;
	jform.appendChild(a);
	
	fcontrol(jform, "join_group");
	jform.submit();
}

jsForm.prototype.createField = function () {

}

jsForm.prototype.submitForm = function () {

}
