function sg(gid){
if(document.formname.tablename.value == "document_receive")
{window.location="http://localhost:8080/document/updatedocument_receive.jsp?id="+gid;}
}
if(document.formname.tablename.value == "document_receive")
{window.location="http://localhost:8080/document/updatedocument_receive.jsp?id="+gid;}
}
document.tablename.value
=>
document.all.tablename.value