$("#openidLogin").click(function(){var openidUrl=$("#openid_url").val();if(openidUrl=='')
{$("#error").html('Please enter openid url.');}
else
{$("div#openid_body_1").remove();$("div#error").show();setInterval("loading();",1000);var url=baseurl+'/ajax/openid.php?openid_url='+openidUrl+'&action=verify';$.ajax({type:"GET",url:url,dataType:'html',success:function(msg){if(msg.match(/http:\/\//i))
{window.location=msg;}
else if(msg!='')
{$("span#msg").html(msg+'<span id="loading"> </span>');}},error:function(){}});}});$("#openid_close").click(function(){$("#thickbox").remove();$("div#openid_head").remove();$("div#openid_body").remove();})
function loading()
{var loading=$("#loading").html();var len=loading.length;if(len>=5)
{loading='.';}
else
{loading=loading+'.';}
$("#loading").html(loading);}
function openid(u,e,p,c,t)
{u=baseurl+'/ajax/openid_login.php?u='+u+'&e='+e+'&p='+p+'&c='+c+'&t='+t;thickbox(u);}
