checkOperation="";
var smallWin=null;

function BlogEdit() {
     if (document.EditBlog.BCode.value==0) {
          alert("Please enter a Blog Title.");
          document.EditBlog.BCode.focus();
          return false
     }
     if (document.EditBlog.BDesc.value==0) {
          alert("Please enter a Blog Description.");
          document.EditBlog.BDesc.focus();
          return false
     }
     return true
}
function BlogPreview() {
     return true
}

function CheckBlog(stuff) {
     if (stuff.checked==true) {
         document.PreviewBlog.ChkBlogTerms.value="Yes";
     } 
     if (stuff.checked==false) {
         document.PreviewBlog.ChkBlogTerms.value="No";
         alert("If you do not agree to these Terms,\nthis Blog entry will not be published.");
     }
     return true
}
function CheckPage() {
   alert("HTML page needed.");
   return false
}
function findVideo(URL) {
   openSmallWin(URL, 'smallWin', 790, 620);
}

function jumpProducts(selObj,restore) {
   eval("top.location='"+document.SearchVideo.URLPage.value+"?numC1="+document.SearchVideo.Fld35.value+"&numC2="+selObj.options[selObj.selectedIndex].value+"&channel="+document.SearchVideo.DisplayChannel.value+"&DisplayVideo="+document.SearchVideo.DisplayVideo.value+"&SortVideo="+document.SearchVideo.SortVideo.value+"&QName="+document.SearchVideo.QName.value+"'");
   if (restore) selObj.selectedIndex=0;
}
function jumpProductsSort(selObj,restore) {
   eval("top.location='"+document.SearchVideo.URLPage.value+"?numC1="+document.SearchVideo.Fld35.value+"&numC2="+document.SearchVideo.Fld36.value+"&channel="+document.SearchVideo.DisplayChannel.value+"&DisplayVideo="+document.SearchVideo.DisplayVideo.value+"&SortVideo="+selObj.options[selObj.selectedIndex].value+"'");
   if (restore) selObj.selectedIndex=0;
}
function jumpProductsView(selObj,restore) {
   eval("top.location='"+document.SearchVideo.URLPage.value+"?numC1="+document.SearchVideo.Fld35.value+"&numC2="+document.SearchVideo.Fld36.value+"&channel="+document.SearchVideo.DisplayChannel.value+"&DisplayVideo="+selObj.options[selObj.selectedIndex].value+"&SortVideo="+document.SearchVideo.SortVideo.value+"&QName="+document.SearchVideo.QName.value+"'");
   if (restore) selObj.selectedIndex=0;
}



function jumpPrograms(selObj,restore) {
   eval("top.location='"+document.SearchVideo.URLPage.value+"?numC1="+selObj.options[selObj.selectedIndex].value+"&channel="+document.SearchVideo.DisplayChannel.value+"&DisplayVideo="+document.SearchVideo.DisplayVideo.value+"&SortVideo="+document.SearchVideo.SortVideo.value+"&QName="+document.SearchVideo.QName.value+"'");
   if (restore) selObj.selectedIndex=0;
}
function jumpProgramsSort(selObj,restore) {
   eval("top.location='"+document.SearchVideo.URLPage.value+"?numC1="+document.SearchVideo.Fld35.value+"&channel="+document.SearchVideo.DisplayChannel.value+"&DisplayVideo="+document.SearchVideo.DisplayVideo.value+"&SortVideo="+selObj.options[selObj.selectedIndex].value+"'");
   if (restore) selObj.selectedIndex=0;
}
function jumpProgramsView(selObj,restore) {
   eval("top.location='"+document.SearchVideo.URLPage.value+"?numC1="+document.SearchVideo.Fld35.value+"&channel="+document.SearchVideo.DisplayChannel.value+"&DisplayVideo="+selObj.options[selObj.selectedIndex].value+"&SortVideo="+document.SearchVideo.SortVideo.value+"&QName="+document.SearchVideo.QName.value+"'");
   if (restore) selObj.selectedIndex=0;
}
function jumpNews(selObj,restore) {
   eval("top.location='"+document.SearchNews.URLPage.value+"?numC3="+selObj.options[selObj.selectedIndex].value+"&numC1="+document.SearchNews.newscat1.value+"&numC2="+document.SearchNews.newscat2.value+"&channel="+document.SearchNews.DisplayChannel.value+"&DisplayNews="+document.SearchNews.DisplayNews.value+"&SortNews="+document.SearchNews.SortNews.value+"&QName="+document.SearchNews.QName.value+"'");
   if (restore) selObj.selectedIndex=0;
}
function openSmallWin(URL, windowName, windowWidth, windowHeight, scrollbars) {
   var xposition = 325; 
   var yposition = 210;

   if (!scrollbars) var scrollbars = 0;
   var args="width=" + windowWidth + "," + "height=" + windowHeight + "," + "location=0," + "menubar=0," + "scrollbars=" + scrollbars + "," + "status=0," + "titlebar=0," + "hotkeys=0," + "screenx=" + xposition + "," + "screeny=" + yposition + "," + "left=" + xposition + "," + "top=" + yposition;
   if (smallWin != null && !smallWin.closed) {
       smallWin.close();
   }
   smallWin = window.open(URL, windowName, args);
   smallWin.focus();
}
