\n');
}
function onsend() {
if (document.forms[0].EnableCookie.value == "true") {
var exp = new Date();
exp.setMonth (exp.getMonth() +6);
Setmycookie("username",document.forms[0].Username.value,exp,"/","albint.com");
Setmycookie("password",document.forms[0].Password.value,exp,"/","albint.com");
Setmycookie("attempts", 1);
}
//SetPerCookie( "mySes" );
//document.forms[0].Username.value = document.forms[1].Username.value;
//document.forms[0].Password.value = document.forms[1].pass.value;
document.forms[0].RedirectTo.value = "/web/admin/sitemgmt.nsf/LoginAgent2?openagent&MyRedirect=" + document.forms[0].RedirectTo.value;
document.forms[0].submit();
}
function inlinesend() {
document.forms[0].RedirectTo.value = "http://www.albint.com/web/albint_pub.nsf/Content/noflash";
document.forms[0].Username.value = document.forms[1].uname.value;
document.forms[0].Password.value = document.forms[1].pass.value;
onsend();
}
function defaultlogin() {
var temp = window.location.href;
var myindex = temp.indexOf( "RedirectTo=" );
myindex = myindex + 11;
temp = temp.substring( myindex, temp.length );
myindex = temp.lastIndexOf("&");
if( myindex > 0 ) {
temp = temp.substring( 0, myindex );
}
document.forms[0].RedirectTo.value = temp;
document.forms[0].Username.value = document.forms[1].uname.value;
document.forms[0].Password.value = document.forms[1].pass.value;
if(document.forms[1].rem.checked)
document.forms[0].EnableCookie.value = "true";
onsend();
}
function inlinesend2() {
document.forms[0].RedirectTo.value = "http://www.albint.com/web/albint_pub.nsf/Content/Login2";
document.forms[0].Username.value = document.forms["inlineform"].uname.value;
document.forms[0].Password.value = document.forms["inlineform"].pass.value;
onsend();
}
function SetPerCookie( name ){
if( GetCookie(name) == null ){
var exp = new Date();
exp.setMonth (exp.getMonth() + 6 );
Setmycookie(name,"Session Cookie",exp,"/","albint.com" );
}else{
var exp = new Date(1);
Setmycookie( name,"Session Cookie",exp,"/","albint.com" );
exp = new Date();
exp.setMonth( exp.getMonth() + 6 );
Setmycookie( name,"Session Cookie",exp,"/","albint.com" );
}
}
function Setmycookie (name, value) {
var argv = Setmycookie.arguments;
var argc = Setmycookie.arguments.length;
var expires = (argc>2) ? argv[2] : null;
var path = (argc>3) ? argv[3] : null;
var domain = (argc>4) ? argv[4] : null;
var secure = (argc>5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) + ((expires == null) ? " " : ("; expires="+ expires.toGMTString())) + ((path == null) ? " " : ("; path=" + path)) + ((domain==null) ? " " : ("; domain=" + domain)) +((secure == true) ? "; secure" : " ");
}
function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr=document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function loadme() {
if (GetCookie("myloc") == null){
var exp2 = new Date();
exp2.setMonth (exp2.getMonth() +1);
var MYloc = window.location.href;
Setmycookie("myloc",MYloc,exp2,"/","albint.com");
}
var name = GetCookie( "username" );
var pass = GetCookie( "password" );
if( (name != null) && (pass != null) ) {
document.forms[0].Username.value = name;
document.forms[0].Password.value = pass;
}
var temp = window.location.href;
var myindex = temp.indexOf( "RedirectTo=" );
if( myindex != -1 ) {
myindex = myindex + 11;
temp = temp.substring( myindex, temp.length );
myindex = temp.lastIndexOf("&reasonType=");
if( myindex > 0 )
temp = temp.substring( 0, myindex );
document.forms[0].RedirectTo.value = temp;
//nav8.style.display='none';
//bnav.style.display='none';
}
var temp = window.location.href;
var myindex = temp.indexOf( "reasonType=" );
myindex = myindex + 11;
temp = temp.substring( myindex, temp.length );
myindex = temp.indexOf("&");
if( myindex > 0 ) {
temp = temp.substring( 0, myindex );
}
if( (temp != 1) && (temp != 2) && (name != null) && (pass != null) ) {
//SetPerCookie( "mySes" )
document.forms[0].RedirectTo.value = "/web/admin/sitemgmt.nsf/LoginAgent2?openagent&MyRedirect=" + document.forms[0].RedirectTo.value;
document.forms[0].submit();
}else{
//nav8.style.display='block';
//bnav.style.display='block';
}
}
function Win(url,winname,w2,h2,p1,p2,p3,p4,p5){
w1 =0
h1 =0
params = "width="+w2+",";
params += "height="+h2+",";
params += "toolbar="+p5+",";
params += "location="+p1+",";
params += "directories=0,";
params += "status=1,";
params += "menubar="+p2+",";
params += "scrollbars="+p3+",";
params += "resizable="+p4+",";
params += "left="+w1+",";
params += "top="+h1+"";
win = window.open(url, "diligentWin", params, w2, h2, p1, p2, p3, p4, p5);
win.focus();
}
//-->
Albint.com - noflash