﻿ function FileGuidelines()
 {
    url1="FileSubmissionGuidelines.aspx";
    window.open(url1,'popupwindow','left=10,top=10,height=550,width=700,scrollbars=yes,toolbar=no,location=center,menubar=no')
 }
 function ContactUs() {
     url1 = "ContactUs.aspx";
     window.open(url1, 'popupwindow', 'left=10,top=10,height=550,width=700,scrollbars=yes,toolbar=no,location=center,menubar=no')
 }
function Email()
{
    url2="Email.aspx";
    window.open(url2,'popupwindow','left=10,top=10,height=320,width=280,scrollbars=no,toolbar=no,location=center,menubar=no')
}

function CoverColor()
{
    url3 = "CoverColor.aspx#colorcardpaper";
    window.open(url3, 'popupwindow', 'left=10,top=10,height=400,width=692,scrollbars=yes,toolbar=no,status=no, location=center,menubar=no,target=_blank');
    return false;
}

function CoverColorPremium() {
    url3 = "CoverColor.aspx#Premium";
    window.open(url3, 'popupwindow', 'left=10,top=10,height=400,width=692,scrollbars=yes,toolbar=no,status=no, location=center,menubar=no,target=_blank');
    return false;
}

function CoverColorTape() {
    url3 = "CoverColor.aspx#Tape";
    window.open(url3, 'popupwindow', 'left=10,top=10,height=400,width=692,scrollbars=yes,toolbar=no,status=no, location=center,menubar=no,target=_blank');
    return false;
}

function CoverColorCard() {
    url3 = "CoverColor.aspx#Card";
    window.open(url3, 'popupwindow', 'left=10,top=10,height=400,width=692,scrollbars=yes,toolbar=no,status=no, location=center,menubar=no,target=_blank');
    return false;
}

function showCoverColor(ctrl) {
    if (document.getElementById(ctrl).checked) {
        document.getElementById("btnTapeColor").style.display = "block";
        document.getElementById("ctl00_ContentPlaceHolder1_txtTapeColor").style.display = "block";
    }
    else {
        document.getElementById("btnTapeColor").style.display = "none";
        document.getElementById("ctl00_ContentPlaceHolder1_txtTapeColor").style.display = "none";

    }
}

function showCardStockColor(ctrl) {
    if (document.getElementById(ctrl).checked) {
        document.getElementById("btnCardStockColor").style.display = "block";
        document.getElementById("ctl00_ContentPlaceHolder1_txtCardStock").style.display = "block";
    }
    else {
        document.getElementById("btnCardStockColor").style.display = "none";
        document.getElementById("ctl00_ContentPlaceHolder1_txtCardStock").style.display = "none";

    }
}

function CoverColor11() {
    url3 = "CoverColor.aspx#colorcardpaper" ;
    window.open(url3, 'popupwindow', 'left=10,top=10,height=400,width=692,scrollbars=yes,toolbar=no,status=no, location=center,menubar=no,target=_blank');
    return false;
}
function FinishingOptions()
{
    url4="ServicesDescription.aspx#Finishing";
    window.open(url4, 'popupwindow', 'left=10,top=10,height=400,width=550,scrollbars=yes,toolbar=no,location=center,menubar=no');
    return false;
}

function showDescription(bkmark)
{
    url0 = "ServicesDescriptionView.aspx#" + bkmark;
    //url0 = "ServicesDescription.aspx";
    //window.scroll(800, 800);
    window.open(url0, 'popupwindow', 'left=10,top=10,height=400,width=600,scrollbars=yes,toolbar=no,status=no,location=center,menubar=no');
    return false;
}

function HideContinue() {
    if (document.getElementById("ctl00_ContentPlaceHolder1_rdoCopyrightedFilled").checked) {
        document.getElementById("ctl00_ContentPlaceHolder1_btnContinue").style.display = "block";
        document.getElementById("contunuetext").style.display = "block";
    }
    else {
        document.getElementById("ctl00_ContentPlaceHolder1_btnContinue").style.display = "none";
        document.getElementById("contunuetext").style.display = "none";
    }
}

function ClearContent() {
    if (confirm('Are you sure you want to clear the form?')) {
        document.forms[0].reset();
        if(document.getElementById("ctl00_ContentPlaceHolder1_BiColor")!=null)
            document.getElementById("ctl00_ContentPlaceHolder1_BiColor").style.backgroundColor="#ffffff";
    }
}

function ClearPaperColor() {
    if (document.getElementById("ctl00_ContentPlaceHolder1_BiColor") != null) {
        document.getElementById("ctl00_ContentPlaceHolder1_BiColor").value = "";
        document.getElementById("ctl00_ContentPlaceHolder1_BiColor").style.backgroundColor = "#ffffff";
    }
}