OnClientClick="javascript:document.getElementById('ctl00_ContentPlaceHolder1_hfArrivalDate').value = document.getElementById('ctl00_ContentPlaceHolder1_txtArrivalDate').value; return confirm('The current invoice ,Invoice No : ' + document.getElementById('ctl00_ContentPlaceHolder1_txtInvoiceNo').value.toUpperCase() + ', will be saved before doing next invoice. Are you sure to do that?');"
function test()
{
if (document.getElementById("ctl00_ContentPlaceHolder1_txtInvoiceNo").value == "")
{
alert("Please input Invoice No. ! ! !");
}
else if (document.getElementById("ctl00_ContentPlaceHolder1_txtArrivalDate").value == "")
{
alert("Please input Arrival Date ! ! !");
}
else if (document.getElementById("ctl00_ContentPlaceHolder1_txtLoadCountry").value == "")
{
alert("Please input Load Country ! ! !");
}
else
{
confirm("The current invoice ,Invoice No : " + document.getElementById("ctl00_ContentPlaceHolder1_txtInvoiceNo").value.toUpperCase() + ", will be saved before doing next invoice. Are you sure to do that?");
}
}