function includeSpecialCss(contextPath) {
    document.write("<link href=\"" + contextPath + "/pages/styles/special.css\" rel=\"stylesheet\" type=\"text/css\" />");
}

function includeIEPNGFix(element, contextPath) {
    document.write("<style type=\"text/css\"> " + element + " {behavior: url(\"" + contextPath + "/js/iepngfix.htc\") !important}</style>");
}

function includeMozillaEllipsisFix(selector, pathToFix) {
    document.write("<style type=\"text/css\"> " + selector + " {-moz-binding: url(\"" + pathToFix + "moz_fix.xml#ellipsis\")}</style>");
}

function openFSImage(id, cp) {
    window.open(cp + '/dealerShopInfo.do?method=showDealerCommentPopUp&realSize=true&id='+id, "",
        "top=100,left=0,width=670,height=590,resizable=yes,status=no,toolbar=no,menubar=no");
    return false;
}

function shopInfoSubmitForm(forward) {
    var frm = document.forms[0];
    if (frm) {
        frm.forward.value = forward;
        frm.submit();
    }
    return true;
}

function changeInputElementSize(linkId, idPrefix, elementId, newHeight) {
         jQuery("[id^=" + idPrefix + "]").removeClass('imputFieldSizeControlActive');
         jQuery("#" + linkId).addClass('imputFieldSizeControlActive');
         jQuery("#" + elementId).height(newHeight);
     }

function removeImage(elementId, imageAreaId, button) {
    jQuery("#" + elementId).val('true');
    jQuery("#" + imageAreaId).html('');
    button.style.display = 'none';
}

function ie6hoverFix(selector) {
    if($.browser.msie && $.browser.version < 7){
        $(selector).hover(function() {
            $(this).addClass('hover');
        }, function() {
            $(this).removeClass('hover');
        });
    }
}
