function quick_login(sid,fun) //���ٵ�¼��?? { if(typeof(fun)!="undefined") { fun="&fun="+escape(fun); } else { fun=""; } idialog('��ա��¼','/e/aspx/quick_login.aspx?s='+sid+fun,300,200); } function check_permission(sid,state,mtype) //�������ȩ�� { switch(state) { case "not_login": alert("�բ������ȵ�¼!"); var backurl=location.href; location.href="/e/member/index.aspx?type=login&s="+sid+"&to="+escape(backurl); break; case "no_permissions": alert("�բ���"+mtype+"û�з���ȩ��!"); location.href="/"; break; } } function cart_prompt(sid,table,id) { var mc=getcookie("member"); if(mc=="") { idialog('��ա��¼','/e/aspx/quick_login.aspx?s='+sid,300,200); } else { idialog('���ﳵ��??,"/e/order/cart.aspx?s="+sid+"&table="+table+"&id="+id,400,140); } } function loginbox(id,siteid)//js���õ�¼ { var loginform=document.forms["loginbox_"+id]; loginform.action="/e/member/index.aspx?type=login&s="+siteid; loginform.target="_self"; var l_username = loginform.username; var l_passowrd = loginform.password; var l_yzm = loginform.vcode; if(l_username.value=="") { alert("�������û���!"); l_username.focus(); return false; } else if(length(l_username.value)<4 || length(l_username.value)>16) { alert("�û���������ҫ��4-16֮��!"); l_username.focus(); return false; } else if(!isusername(l_username.value)) { alert("�û���ֻ������ĸ�����֡��»��ߺͺ�����??"); l_username.focus(); return false; } if(l_passowrd.value=="") { alert("��������??"); l_passowrd.focus(); return false; } else if (l_passowrd.value.length <4 || l_passowrd.valuelength > 16) { alert("���볤����ҫ��4-16֮��!"); l_passowrd.focus(); return false; } else if(!isstr(l_passowrd.value)) { alert("����ֻ�������֣���ĸ���»������!"); l_passowrd.focus(); return false; } if(l_yzm!=null) { if(l_yzm.value.length!=4) { alert("��������ȷ����֤??"); l_yzm.focus(); return false; } } return true; } function attachment_back(error,point,siteid) //������ʾ���� { switch(error) { case "notexists": alert("�բ����ļ�����??"); window.close(); break; case "nopermission": alert("�բ��������ڵļ�ա��������ȩ��!"); window.close(); break; case "nopoint": alert("�բ������ļ��ֲ��㣬���ļ�������??+point+"���??") window.close(); break; case "notlogin": alert("�բ������ȵ�¼!"); var backurl=location.href; location.href="/e/member/index.aspx?s="+siteid+"&type=login&to="+escape(backurl); return false; break; } } function addfavourites_back(sid,v) //���ػص����� { switch(v) { case "ok": alert("��ϣ�ղسɹ�!"); break; case "has_exists": alert("����ϣ�ѿ��ղع�??"); break; case "not_exists": alert("����ϣ�����ѿ�������!"); break; case "notlogin": quick_login(sid); break; default: alert("����:"+v); break; } }