﻿var strWatermark;
strWatermark = 'search';

function WatermarkFocus(txtElem,locale) {
    strWatermark = GetWaterMarkText(locale);
    if (txtElem.value == strWatermark) txtElem.value = '';
    txtElem.style.background='#ffffff'; 
}

function WatermarkBlur(txtElem,locale) {
    strWatermark = GetWaterMarkText(locale);
    if (txtElem.value == '') txtElem.value = strWatermark;
    txtElem.style.background='#dddddd';
}

function GetWaterMarkText(language){
    if (language == 'spanish'){
        return 'búsqueda'
    }
    else{
        return 'search'
    }
}