function SelPage(id)
{
	Form1.CommandValue.value = id;
	DoPostBack("SelPage");
}

function DoPostBack(commandName) 
{   
	var obj,form;
	obj = document.getElementById("CommandName");
	if(obj == null) 
	{
		alert("Not CommandName Object");
		return;
	}
	form = document.getElementById("Form1");
	if(form == null) 
	{
		alert("Not Form1");
		return;
	}
	obj.value = commandName;
	form.submit();
}

