﻿function namebox_click() {
    if (document.getElementById('GetQuoteForm1_namebox').value == 'Name') {
        document.getElementById('GetQuoteForm1_namebox').style.color = '#000000';
        document.getElementById('GetQuoteForm1_namebox').value = '';
    }
    var lbl = document.getElementById('lbl_emailsentresult')
    if (lbl != null) {
        //alert('!!!')
        //lbl.Visible = false;
        lbl.innerText = "";
    }
    
}

function namebox_onblur() {
    var str_searchbox = document.getElementById('GetQuoteForm1_namebox').value;
    if (str_searchbox.length < 1) {
        document.getElementById('GetQuoteForm1_namebox').style.color = '#d5d5d5';
        document.getElementById('GetQuoteForm1_namebox').value = 'Name';
    }
}
//***********************************************************
function emailbox_click() {
    if (document.getElementById('GetQuoteForm1_emailbox').value == 'Email') {
        document.getElementById('GetQuoteForm1_emailbox').style.color = '#000000';
        document.getElementById('GetQuoteForm1_emailbox').value = '';
    }
    var lbl = document.getElementById('lbl_emailsentresult')
    if (lbl != null) {
        //alert('!!!')
        //lbl.Visible = false;
        lbl.innerText = "";
    }

}

function emailbox_onblur() {
    var str_searchbox = document.getElementById('GetQuoteForm1_emailbox').value;
    if (str_searchbox.length < 1) {
        document.getElementById('GetQuoteForm1_emailbox').style.color = '#d5d5d5';
        document.getElementById('GetQuoteForm1_emailbox').value = 'Email';
    }
}
//***********************************************************************
function phonebox_click() {
    if (document.getElementById('GetQuoteForm1_phonebox').value == 'Phone') {
        document.getElementById('GetQuoteForm1_phonebox').style.color = '#000000';
        document.getElementById('GetQuoteForm1_phonebox').value = '';
    }
    var lbl = document.getElementById('lbl_emailsentresult')
    if (lbl != null) {
        //alert('!!!')
        //lbl.Visible = false;
        lbl.innerText = "";
    }

}

function phonebox_onblur() {
    var str_searchbox = document.getElementById('GetQuoteForm1_phonebox').value;
    if (str_searchbox.length < 1) {
        document.getElementById('GetQuoteForm1_phonebox').style.color = '#d5d5d5';
        document.getElementById('GetQuoteForm1_phonebox').value = 'Phone';
    }
}
//***********************************************************************
function websitebox_click() {
    if (document.getElementById('GetQuoteForm1_websitebox').value == 'Website') {
        document.getElementById('GetQuoteForm1_websitebox').style.color = '#000000';
        document.getElementById('GetQuoteForm1_websitebox').value = '';
    }
    var lbl = document.getElementById('lbl_emailsentresult')
    if (lbl != null) {
        //alert('!!!')
        //lbl.Visible = false;
        lbl.innerText = "";
    }

}

function websitebox_onblur() {
    var str_searchbox = document.getElementById('GetQuoteForm1_websitebox').value;
    if (str_searchbox.length < 1) {
        document.getElementById('GetQuoteForm1_websitebox').style.color = '#d5d5d5';
        document.getElementById('GetQuoteForm1_websitebox').value = 'Website';
    }
}
//***********************************************************************
function comment_click() {
    if (document.getElementById('GetQuoteForm1_commentbox').value == 'Comments/Notes') {
        document.getElementById('GetQuoteForm1_commentbox').style.color = '#000000';
        document.getElementById('GetQuoteForm1_commentbox').value = '';
    }
    else if (document.getElementById('GetQuoteForm1_commentbox').value.length > 0 &&
    document.getElementById('GetQuoteForm1_commentbox').value != 'Comments/Notes') {
    document.getElementById('GetQuoteForm1_commentbox').style.color = '#000000';
    }
    var lbl = document.getElementById('lbl_emailsentresult')
    if (lbl != null) {
        //alert('!!!')
        //lbl.Visible = false;
        lbl.innerText = "";
    }

}

function comment_onblur() {
    var str_searchbox = document.getElementById('GetQuoteForm1_commentbox').value;
    if (str_searchbox.length < 1) {
        document.getElementById('GetQuoteForm1_commentbox').style.color = '#d5d5d5';
        document.getElementById('GetQuoteForm1_commentbox').value = 'Comments/Notes';
    }
}
//***********************************************************************
function somebox_click(boxname, initvalue) {
    if (document.getElementById(boxname).value == initvalue) {
        document.getElementById(boxname).style.color = '#000000';
        document.getElementById(boxname).value = '';
    }
    var lbl = document.getElementById('lbl_emailsentresult')
    if (lbl != null) {
        //alert('!!!')
        //lbl.Visible = false;
        lbl.innerText = "";
    }

}

function somebox_onblur(boxname, initvalue) {
    var str_searchbox = document.getElementById(boxname).value;
    if (str_searchbox.length < 1) {
        document.getElementById(boxname).style.color = '#d5d5d5';
        document.getElementById(boxname).value = initvalue;
    }
}
//*********************************************************************
function form_go() {
    var btn = document.getElementById('GetQuoteForm1_go');
    btn.onclick();
}
