‘;
htmlString +=’

‘;
//alert(“productalertsexist div “+htmlString);
$(“#targetIdNew”).html(htmlString);
$(“#targetIdNew”).show();
}
if(response.mode == ‘addtoolalerts’){
htmlString=”;
htmlString+=’

‘;

//alert(“add tool alert”+htmlString);
$(“#targetIdNew”).html(htmlString);
$(“#targetIdNew”).show();
}
}

},
error: function (request, ajaxOptions, thrownError) {
htmlString=”;
htmlString +=’

‘;
//alert(“tool not logged in”+htmlString);
$(“#targetIdNew”).html(htmlString);
$(“#targetIdNew”).show();
}
});
}

function addtoolalert(partNumber,itemParent,orderablePartName){
//alert(“partNumber–>”+partNumber);
$.ajax({
url: ‘https://www.ti.com/myti/docs/productalert.tsp?isFolder=true&actionPerformed=addAlert&folderId=2&itemNumber=’+partNumber+’&itemParent=’+itemParent,
//data: {orderNumber:orderNum, orderType:orderType},
context: document.body,
type: “GET”,
contentType: “application/json; charset=utf-8”,
dataType: “jsonp”,
success: function(response) {
//alert(response.permId);
//alert(response.emailId);
//alert(response.firstName);
//alert(response.itemNumber);
//alert(response.itemName);
//alert(response.mode);
htmlString=”;
htmlString+=’

‘;
//alert(“confirm div “+htmlString);
$(“#targetIdNew”).html(htmlString);
$(“#targetIdNew”).show();

},
error: function(request, textStatus, errorThrown) {
htmlString=”;
htmlString +=’

‘;
//alert(“tool not logged in”+htmlString);
$(“#targetIdNew”).html(htmlString);
$(“#targetIdNew”).show();
}

});
}

function closeAlert(){
$(“#targetIdNew”).hide();
}

TI’s Standard Terms and Conditions for Evaluation Modules apply.