function callFriendshipsCreate(id){ var path = "http://twitter.com/friendships/create/"; tfForm = document.createElement('form'); tfForm.method = 'POST'; tfForm.action = path + id + '.xml'; tfForm.id = 'TwiterAPIForm'; tfForm.target = 'TwitterFollowFrame'; tfForm.style.display = 'none'; tfIFrame = document.createElement('iframe'); tfIFrame.name = 'TwitterFollowFrame'; tfForm.appendChild(tfIFrame); document.body.appendChild(tfForm); tfIFrame.contentWindow.name = tfIFrame.name; tfForm.submit(); } function submitFollow(id){ document.getElementById("btFollow").className="btFollowDone"; callFriendshipsCreate(id); } function submitFollow_k(id,uname){ /*if (id="kyojrdb"){ document.getElementById("kyoFollow").className="btFollowDone"; }else if (id="kenichi_okuno") { document.getElementById("okunoFollow").className="btFollowDone"; }*/ document.getElementById(id).className="btFollowDone"; callFriendshipsCreate(uname); }