function popupAuthorBio(authorid) {
            var popurl = "PopUpAuthorBio.aspx?AuthorId=" + authorid
            winpops = window.open(popurl, "", "resizable=yes,width=550,height=550,scrollbars=yes")
}


function popUpPolicy() {
    var popurl = "popUpPolicy.aspx"
    winpops = window.open(popurl, "", "resizable=yes,width=850,height=550,scrollbars=yes")
}


function popUpReturns() {
    var popurl = "popUpReturns.aspx"
    winpops = window.open(popurl, "", "resizable=yes,width=850,height=550,scrollbars=yes")
}


function popupChildDetail(uId) {
    var popurl = "PopUpChildDetail.aspx?Id=" + uId
    winpops = window.open(popurl, "", "resizable=yes,width=850,height=450,scrollbars=yes")
}


function popupFullScreen(url) 
{
 params  = 'width='+screen.width;
 params += ', height='+screen.height;
 params += ', top=0, left=0'
 params += ', fullscreen=yes';

 newwin=window.open(url,'windowname4', params);
 if (window.focus) {newwin.focus()}
 return false;
}


function TranslateFormat(format){
switch (format) {
    case(format="DV"):
       return "DVD";
       break;
    case(format="CR"):
       return "CD-ROM";
       break;
    case(format="CD"):
       return "CD (Audio)";
       break;
    case(format="CL"):
       return "Clothing";
       break;
    case(format="CS"):
       return "Course";
       break;
    case(format="CT"):
       return "Cassette Tape";
       break;
    case(format="GB"):
       return "Comb Binding";
       break;
    case(format="HB"):
       return "Hard Cover";
       break;
    case(format="MM"):
       return "Multi-Media";
       break;
    case(format="OA"):
       return "On-line Audio";
       break;
    case(format="OC"):
       return "On-line Course";
       break;
    case(format="OT"):
       return "On-line Test";
       break;
    case(format="OV"):
       return "On-Line Video";
       break;
    case(format="PB"):
       return "Soft Cover";
       break;
    case(format="PR"):
       return "Promotional";
       break;
    case(format="PT"):
      return "Paper Test";
       break;
    case(format="SE"):
       return "Seat";
       break;
    case(format="TC"):
       return "Teleconference";
       break;
    case(format="VT"):
       return "VHS Video";
       break;
    case(format="WB"):
       return "Wire Binding";
       break;
    case(format="CL"):
       return "Clothes";
       break;
    case(format="MR"):
       return "Merchandise";
       break;
    }
}

