function checkuser(uid,url){
if (uid!='') window.location=url;
else{
tb_show("Registration Form","/direct/central/midmarket/templates/rego_popup.htm?link="+url+"&keepThis=true&TB_iframe=true&height=400&width=550");
}
}

$(document).ready(function(){
$('#test').click(function(){
$('#regopopup').trigger('click');
});
});