// JavaScript Document
function _clear(t) {
    if (t._Temp == "" || t._Temp == null || t._Temp == undefined)
        t._Temp = t.value;
    if (t.value == t._Temp)
        t.value = "";
}
function _check(t) {
    if (t.value == "" || t.value == null && t.value != t._Temp)
        t.value = t._Temp;
}

function passOver(elem) {
    elem.style.background = "none #FFF";
}
function passOut(elem) {
    if (elem.value == "" || elem.value == undefined)
        elem.style.background = "url(/images/main/password.gif) left center no-repeat #FFF";
}
function PrintElementID(id, pg) {
    var oPrint, oJan;
    oPrint = window.document.getElementById(id).innerHTML;
    oJan = window.open(pg);
    oJan.document.write(oPrint);
    oJan.history.go();
    oJan.window.print();
}


/*///<summary>This function calls the GetPriorityCodes Web Service method.</summary>
///<param name="error">Succeed Object</param>
///<param name="error">Error Object</param>
function getData(controlLocation, divId) {
loadControl.GetControlHtml(controlLocation, SucceededCallback, onFailedWS);

///<summary>Method for Web Service Failed Event</summary>
///<param name="error">Error Object</param>
///<returns>false</returns>
function onFailedWS(error) {
alert(error.get_message());
}
///<summary>This is the callback function that processes the Web Service return value.</summary>
///<param name="result">result Object from Web Service</param>
function SucceededCallback(result) {
//get the div element
var RsltElem = $get(divId);
//update div inner Html
RsltElem.innerHTML = result;
}
    
}
*/
function getData(controlLocation, divId) {
   // var controlLocation = 'components/gerais/expor_opniao.ascx';
    $.ajax({
        url: '/components/util/Ajax.svc/renderuc?path=' + controlLocation,
        dataType: 'html',
        success: function(data) {
            $(divId).html(data);
        }
    });
}
