/***********************************************
	empty for now
***********************************************/
function showabook() {

  url = "index.php?module=showabook";
  config = centerParms("500","430") + ",width=500,height=300,scrollbars=1";

  window.open(url,"_new",config);

}


function showusers() {

  url = "index.php?module=showusers";
  config = centerParms("500","430") + ",width=500,height=300,scrollbars=1";

  window.open(url,"_new",config);

}


function checkAll(checkBoxname) {
//alert(document.all[checkBoxname]);
   for (i=0; i<document.pageForm.length; i++)
        if(document.pageForm[i].id.indexOf(checkBoxname) > -1)
        {
                try
                {
                        if (!document.pageForm[i].disabled)
                                document.pageForm[i].checked = !document.pageForm[i].checked;
                }
                catch(e){}
        }
    // if (document.pageForm.checkBoxname[i].checked==true)
//alert(document.pageForm[i].disabled);
}


function enableCheckbox() {
   for (i=0; i<document.pageForm.length; i++)
        {
                try
                {
                        if (document.pageForm[i].disabled)
                                document.pageForm[i].disabled = false;
                }
                catch(e){}
        }
}



function getChecked(checkBoxname) 
{
   var str = '';
   for (i=0; i<document.pageForm.length; i++)
   {
        if(document.pageForm[i].id.indexOf(checkBoxname) > -1)
        {
                try
                {
                        if (document.pageForm[i].checked)
				str = str + document.pageForm[i].value + ', ';
                }
                catch(e){}
        }
   }

   return str;
   
}


function getEmailValue(str)
{
   try
       {
       var emailTo = document.getElementById('emailTo');
       emailTo.value = str;
       }
   catch(e){}
}


function pushEmailValue(str)
{
       try
       {
       window.opener.getEmailValue(str);
       }
       catch(e){}
}



function getPermValue(str)
{
   try
       {
       var permTo = document.getElementById('permTo');
       permTo.value = str;
       }
   catch(e){}
}


function pushPermValue(str)
{
       try
       {
       window.opener.getPermValue(str);
       }
       catch(e){}
}



function anonColpopup(authstring,objid) {

  url = "index.php?module=anoncolaccess&authString=" + authstring + "&colId=" + objid;
  config = centerParms("800","630") + ",width=650,height=600,scrollbars=1";

  window.open(url,"_new",config);

}


function redirectTodownload(link) {
  window.location = link;
}


function newDDLAction(value,id){
                var createObject = document.getElementById('createObject');
                for(var i=0;i<createObject.length;i++){
                        if (createObject.options[i].value==value){
                                createObject.selectedIndex=i;
                                createNewObject(id)
                                break;
                        }
                }
}


function onlineStatuspopup() {

  url = "index.php?module=onlinestatus";
  config = centerParms("850","630") + ",width=450,height=500,scrollbars=1";

  window.open(url,"_new",config);

}



