<!--
var helpWindow; 
   
function initproc() 
{
    loadCookie();
    setFocus();
}

function sendit() 
{
    getReady();
}

function doLogin( ) {
  var url = '/CtxWeb/ReadyConnect';
  var userid = window.document.flogin.USER_NAME.value;
  var confid = window.document.flogin.CONFERENCE_IDENTIFIER.value;
  var passwd = window.document.flogin.PASSWORD.value;


  url += '?uid='+ userid + '&confid='+ confid + '&pwd=' + passwd;

  popUpWccWindow( url );

//  refreshCurrentLoc();


} 

function popUpWccWindow(wccURL)
{
    // WCC = window.open(wccURL,"WCC","location=no,menubar=no,resizable=yes,status=no,titlebar=yes,toolbar=no,width=790,height=540,top=0,left=0,screenx=0,screeny=0");
    // WCC.document.close();
    // WCC.close();
    WCC = window.open(wccURL,"ReadyConnect","location=no,menubar=no,resizable=yes,status=no,titlebar=yes,toolbar=no,width=790,height=540,top=0,left=0,screenx=0,screeny=0");
    WCC.focus();
}

function getReady()
{
    if (document.flogin.savelog.checked == true)   //save login info
    {
    cookievalue1 = document.flogin.CONFERENCE_IDENTIFIER.value;
    cookiename1 = "cid";
    setCookie(cookiename1,cookievalue1);
    cookievalue2 = document.flogin.USER_NAME.value;
    cookiename2 = "uid";
    setCookie(cookiename2,cookievalue2);
    }
}
   
function getCookie(gname) 
{ 
    var index = document.cookie.indexOf(gname + "=");
    if (index == -1) return null;
    index = document.cookie.indexOf("=", index) + 1;
    var endstr = document.cookie.indexOf(";", index);
    if (endstr == -1) endstr = document.cookie.length;
    return unescape(document.cookie.substring(index, endstr));
}
 
function setCookie(sname,svalue) 
{
    today  = new Date(); 
    expiry = new Date(today.getTime() + 28 * 24 * 60 * 60 * 1000);
    if (svalue != null && svalue != "")
    {
        if (sname != null && sname != "")
        {
            expiry          = expiry.toGMTString();
            cookiestring    = sname + "=" + escape(svalue) + "; expires=" + expiry;
            document.cookie = cookiestring;
        }
        else 
        {
            alert("sname was sent in null or blank");
        }
    }
    else alert("svalue was sent into setCookie as null or blank");
}
 
function loadCookie()
{
    if (getCookie("uid") != null)  // uid cookie exists 
    {
        document.flogin.USER_NAME.value = getCookie("uid");    
    }
    if (getCookie("cid") != null)  // cid cookie exists
    {
        document.flogin.CONFERENCE_IDENTIFIER.value = getCookie("cid"); 
    }
}

function getHelp(windowid)
{
    helpWindow=window.open('WebHelp/index.htm#using_conference_control_control_panel.htm','pop','resizable=yes,scrollbars=yes,menubar=no,toolbar=no,status=no,height=425,width=700',true);
    helpWindow.document.focus();
    helpWindow.document.close();
}
		
function setFocus()
{
    document.flogin.USER_NAME.focus();
    timeoutID = setTimeout("document.flogin.USER_NAME.select()",5);
}
//-->
