// ----------------------------------------------------------------------
// Open Window
// ----------------------------------------------------------------------
function OpenWindow(val1, val2, val3, val4, val5, val6) {
    var page = val1;
    var prop = 'width=' + val2 + ', height=' + val3 + ', left=' + val4 + ', top=' + val5 + ', location=no, scrollbars=yes, menubar=no, toolbar=no, resizable=yes, status=1';
    var win = window.open(page, val6, prop);
    win.focus();
}

// ----------------------------------------------------------------------
// Change SQL Page
// ----------------------------------------------------------------------
function ChangeSQLPage(val) {
    document.frm.page.value = val;
    document.frm.submit();
}

// ----------------------------------------------------------------------
// Change Sort Order
// ----------------------------------------------------------------------
function SortOrder(order, field) {
    if (order == 0) {
        document.frm.sortorder.value = 1;
    }
    else {
        document.frm.sortorder.value = 0;
    }
    document.frm.sortfield.value = field
    document.frm.submit();
}

// ----------------------------------------------------------------------
// Refresh Captcha Image
// ----------------------------------------------------------------------
function RefreshImage(valImageId) {
    var objImage = document.images[valImageId];
    if (objImage == undefined) {
        return;
    }
    var now = new Date();
    objImage.src = objImage.src.split('?')[0] + '?x=' + now.toUTCString();
}

// ----------------------------------------------------------------------
// Copy Blogger Data
// ----------------------------------------------------------------------
function CopyBlogger()
{
   var ta = document.getElementById ("bloggerdata");
   var d = document.getElementById ("blogger");
   // Transfer the text from the DIV to the hidden textarea
   ta.innerText= d.innerText;
   // create the text range
   var t= ta.createTextRange ();
   // do this if you wanna remove the format of the text within
   t.execCommand('RemoveFormat');
   // Then execute the copy command
   t.execCommand('Copy');
   alert('Copied to clipboard');}

   
  
