if (top.frames.length > 0) {
  top.location.href=self.location;
}
function showgrafic(pageurl,winwidth,winheight) {
         graficshow=window.open (
             "showgrafic.html?pic="+pageurl,
             "AutosGuayre",
             "toolbar=no,"
            +"scrollbars=no,"
            +"location=no,"
            +"resizable=no,"
            +"width="+winwidth
            +",height="+winheight
         );
}
function showgraficf(pageurl,winwidth,winheight) {
         graficshow=window.open (
             "showgraficf.html?pic="+pageurl,
             "AutosGuayre",
             "toolbar=no,"
            +"scrollbars=no,"
            +"location=no,"
            +"resizable=no,"
            +"width="+winwidth
            +",height="+winheight
         );
}
function showcontent(pageurl,winwidth,winheight) {
         contentshow=window.open (
             pageurl,
             "charco_del_palo",
             "toolbar=no,"
            +"scrollbars=yes,"
            +"location=no,"
            +"resizable=no,"
            +"width="+winwidth
            +",height="+winheight
         );
}
function showProvider(proveedor,xmlfile,sprache) {
         contentshow=window.open (
             "anbieterinfo.html?proveedor=" + proveedor + "&xmlfile=" + xmlfile + "&sprache=" + sprache,
             "charco_del_palo",
             "toolbar=no,"
            +"scrollbars=yes,"
            +"location=no,"
            +"resizable=no,"
            +"width=500,height=400"
         );
}
function showextra(pageurl) {
         contentshow=window.open (
             pageurl,
             "AutosGuayre",
             "toolbar=no,"
            +"scrollbars=yes,"
            +"location=no,"
            +"resizable=no,"
            +"width=500,height=300");
}
function writecc(cctyp,ccname,ccnum,ccmes,ccano) {
         document.mainform.PAYMENT.value = "creditcard";
         document.mainform.TYPE_OF_CARD.value = cctyp;
         document.mainform.NAME_ON_CARD.value = ccname;
         document.mainform.CARD_NO.value = ccnum;
         document.mainform.CARD_EXPIRY_MONTH.value = ccmes;
         document.mainform.CARD_EXPIRY_YEAR.value = ccano;
         document.getElementById("pay").style.position = "absolute";
         document.getElementById("pay_cc").style.position = "static";
         return true;
}
function writebankeinzug(acountname,bankname,bankcode,acount) {
         document.mainform.PAYMENT.value = "bank";
         document.mainform.BANK_ACCOUNT.value = acount;
         document.mainform.BANK_CODE.value = bankcode;
         document.mainform.BANK_NAME.value = bankname;
         document.mainform.ACCOUNT_NAME.value = acountname;
         document.getElementById("pay").style.position = "absolute";
         document.getElementById("pay_bankeinzug").style.position = "static";
         return true;
}
function writetrans() {
         document.mainform.PAYMENT.value = "agent";
         document.mainform.agentpaymenttype.value = "transfer";
         document.getElementById("pay").style.position = "absolute";
         document.getElementById("pay_transfer").style.position = "static";
         return true;
}
function writepaypal() {
         document.mainform.PAYMENT.value = "agent";
         document.mainform.agentpaymenttype.value = "paypal";
         document.getElementById("pay").style.position = "absolute";
         document.getElementById("pay_paypal").style.position = "static";
         return true;
}
function showhelp() {
         document.getElementById("help1").style.position = "absolute";
         document.getElementById("help2").style.position = "static";
         document.getElementById("help3").style.position = "static";
}
function hidehelp() {
         document.getElementById("help1").style.position = "static";
         document.getElementById("help2").style.position = "absolute";
         document.getElementById("help3").style.position = "absolute";
}