<!--

    function ShowTerms(url,content)
    {
    var myWindow ;
    myWindow = window.open(url,"","toolbar,scrollbars,resizable,width=600,height=400");
    if(content != "")
	myWindow.document.write(content);
    }


    function autotab(object1, object2, objectsize){
      if (object1.value.length == objectsize)
		    object2.focus();
    }
   function checkIt() {
   for (var x=0; x<document.sginform.elements.length;x++) {
   if (document.sginform.elements[x].value == "") {
		 alert("Please enter a complete IN and Password to login.");
  		document.sginform.elements[x].focus();
  		return false;
      }
    }
    return true;
   }

   function redirect ( seconds ) { setTimeout("go_now()", seconds*1000); }
   function go_now ()   { window.location.href = "index.asp"; }

  function on(){
	var root = "http://www.imnlink.com/"
	//  if( window.location.href == root + "loggedout.asp" ){
	//	redirect(2); 
	 // }
	  if( window.location.href == root + "wrongpassword.asp" ){
		redirect(30); 
	  }  
  }

  function checkPasswords( opw ){
 
       if (document.newpw.oldpw.value == "") 
        {
        alert("Please enter the old Password.");
		document.newpw.oldpw.focus();
        return false;
        }
 
     if ( document.newpw.oldpw.value != opw.toString() ) 
        {
        alert("The old password entered does not match records. Please reenter");
	document.newpw.oldpw.focus();
        return false;
        }


      if (document.newpw.newpw1.value == "") 
        {
        alert("Please choose a Password.");
		document.newpw.newpw1.focus();
        return false;
        }
	
    if (document.newpw.newpw1.value.match(  /[^A-Za-z0-9_]/ ))
        {
		alert("The password you chose contains special characters. These may be difficult to enter from devices such as a cell-phone. Please select a password with numbers or letters only.");
		document.newpw.newpw1.focus();
        return false;
        }
	
	
    if (document.newpw.newpw2.value == "") 
        {
        alert("Please enter the password again.");
		document.newpw.newpw2.focus();
        return false;
        }
	if (document.newpw.newpw1.value != document.newpw.newpw2.value)
		{
		alert ("Your re-entered password does not match your entered password!");
		document.newpw.newpw2.focus();
		return false;
		}
		
		
		
    if ((document.newpw.newpw1.value.length < 6) || (document.newpw.newpw1.value.length > 12))
		{
		alert ("Please enter a pasword between 6 and 12 characters!");
		document.newpw.rpasswd2.focus();
		return false;
		}		
		
	return true;
  }
  
  
  
	/*
	name - name of the cookie
	value - value of the cookie
	[expires] - expiration date of the cookie
	(defaults to end of current session)
	[path] - path for which the cookie is valid
	(defaults to path of calling document)
	[domain] - domain for which the cookie is valid
	(defaults to domain of calling document)
	[secure] - Boolean value indicating if the cookie transmission requires
	a secure transmission
	* an argument defaults when it is assigned null as a placeholder
	* a null placeholder is not required for trailing omitted arguments
	*/
	
	function setCookie(name, value, expires, path, domain, secure) {
		var curCookie = name + "=" + escape(value) +
		((expires) ? "; expires=" + expires.toGMTString() : "") +
		((path) ? "; path=" + path : "") +
		((domain) ? "; domain=" + domain : "") +
		((secure) ? "; secure" : "");
		document.cookie = curCookie;
	}
	
	
	/*
	name - name of the desired cookie
	return string containing value of specified cookie or null
	if cookie does not exist
	*/
	
	function getCookie(name) {
		var dc = document.cookie;
		var prefix = name + "=";
		var begin = dc.indexOf("; " + prefix);
		if (begin == -1) {
		begin = dc.indexOf(prefix);
		if (begin != 0) return null;
		} else
		begin += 2;
		var end = document.cookie.indexOf(";", begin);
		if (end == -1)
		end = dc.length;
		return unescape(dc.substring(begin + prefix.length, end));
	}
	
	
	/*
	name - name of the cookie
	[path] - path of the cookie (must be same as path used to create cookie)
	[domain] - domain of the cookie (must be same as domain used to
	create cookie)
	path and domain default if assigned null or omitted if no explicit
	argument proceeds
	*/
	
	function deleteCookie(name, path, domain) {
		if (getCookie(name)) {
		document.cookie = name + "=" +
		((path) ? "; path=" + path : "") +
		((domain) ? "; domain=" + domain : "") +
		"; expires=Thu, 01-Jan-70 00:00:01 GMT";
		}
	}
	
	// date - any instance of the Date object
	// * hand all instances of the Date object to this function for "repairs"
	
	function fixDate(date) {
		var base = new Date(0);
		var skew = base.getTime();
		if (skew > 0)
		date.setTime(date.getTime() - skew);
	}
 
    
-->