function open_win(loc,id,width,height,resize,scroll) { var top = (screen.height - height) / 2; var left = (screen.width - width) / 2; window.open(loc,id,"width="+width+",height="+height+",left="+left+",top="+top+",scrollbars="+scroll+",resizable="+resize+",status=yes"); } function do_action(act,id,width,height,resize,scroll) { if (!width) { width = 512; height = 384; resize = "no"; scroll = "no"; } open_win(act,id,width,height,resize,scroll); } function do_action_2(id) { open_win("about:blank",id,"400","300","no","no"); } function print_email(prefix, postfix, user) { var str = prefix + '@' + postfix; if (!user || user == '') { user = str; } document.write(''+ user +''); } function setCookie (name, value, expires, path, domain, secure) { document.cookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function getCookie(name) { var cookie = " " + document.cookie; var search = " " + name + "="; var setStr = null; var offset = 0; var end = 0; if (cookie.length > 0) { offset = cookie.indexOf(search); if (offset != -1) { offset += search.length; end = cookie.indexOf(";", offset) if (end == -1) { end = cookie.length; } setStr = unescape(cookie.substring(offset, end)); } } return(setStr); } function hide_show(id) { var o = document.getElementById(id); if (o.style.display == "none") { o.style.display = "block"; } else { o.style.display = "none"; } } function form_win(width, height) { open_win('', 'partner', width, height); return true; }