function ts_showhide(n){ obj = $(n+"_m"); objsh = $(n+"_sh"); if (obj.style.display == "none") { obj.style.display = ""; objsh.innerHTML = "Hide Others"; } else { obj.style.display = "none"; objsh.innerHTML = "Show Others"; } } function ResetImg(obj,w) { if(typeof(obj) == "undefined") return false; if(typeof(w) == "undefined") var w = 470; if($(obj)){ var o = $(obj); var g = o.getElementsByTagName("img"); for(i=0; i w){ var h = w == 0 ? 0 : Math.round( g[i].height * ( w / g[i].width ) ) ; g[i].width = w; g[i].height = h; g[i].title = "View Large Image ["+g[i].src+"]"; g[i].onclick = function() { window.open(this.src); } g[i].style.cursor = "pointer"; } } } } function Login(formname) { if(typeof(formname) == "undefined") var formname = document.loginform; with(formname) { var e = trim(spachina_login_email.value); var p = trim(spachina_login_password.value); var r = trim(spachina_login_urlfrom.value); if(e == "" ){ alert("Please enter username"); spachina_login_email.focus(); return false; } if(!isEmail(e)){ spachina_login_email.focus(); return false; } if(p == "" ){ alert("Please enter password"); spachina_login_password.focus(); return false; } } var str="email="+e+"&password="+p; str += "&urlfrom="+ r; $("spachina_login_button").value = "Login..."; $("spachina_login_button").disabled = true; AjaxServer("/login/","POST",str); } function Userno_Login(formname) { if(typeof(formname) == "undefined") var formname = document.userno_loginform; with(formname) { var e = trim(spachina_userno_login_userno.value); var p = trim(spachina_userno_login_password.value); var r = trim(spachina_userno_login_urlfrom.value); if(e == "" ){ alert("Please enter userno"); spachina_userno_login_userno.focus(); return false; } if(p == "" ){ alert("Please enter password"); spachina_userno_login_password.focus(); return false; } } var str="userno="+e+"&password="+p; str += "&urlfrom="+ r; $("spachina_userno_login_button").value = "Login..."; $("spachina_userno_login_button").disabled = true; AjaxServer("/joblogin/","POST",str); }