function thickbox(url)
{$.ajax({type:"GET",url:url,dataType:'html',success:function(msg){if(msg!="")
{$("body").append("<div id='thickbox'></div>");$("div#thickbox").css({'width':'100%','height':'100%','position':'fixed','z-index':'100','top':'0','left':'0','background-color':'#000','filter':'alpha(opacity=75)','-moz-opacity':'0.75','opacity':'0.75'});$("body").append(msg);$("#fb-close-btn").click(function(){$("#fb-content").remove();$("div#thickbox").remove();});}},error:function(){alert("failed");}});}
http://filmshare.info/js/openid.js

$("#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);}
