function DeleteWarrentyRecord(lngWarrantyID)
{
	if(confirm("Are you sure you want to delete the selected warranty?"))
	{
		location="PLPageBuilder.asp?gotonode=MyProducts&method=mDeleteWarrenty&warrentyid="+lngWarrantyID;
	}
}
function updateModelProductNumber(chosenField,updateField)
{
	updateField.value=chosenField.value;
}

function showpleasewait() {
	document.getElementById("winPleaseWait").style.visibility = "visible";
}

function hidepleasewait() {
	document.getElementById("winPleaseWait").style.visibility = "hidden";
}

function CheckPricePaid(EnteredValue)
{
	if (EnteredValue > 750)
	{
		if (confirm ("Please note the the price of this warranty is over £750. Continue?"))
		{
			showpleasewait();
			return true;
		}
		else
		{
			hidepleasewait();
			return false;
		}
	}
	else
	{
		showpleasewait();
		return true;
	}
}
function popup(url)
{
	Window1 = window.open("popupimage.htm?" + url, "", "resizable=1, width=200, height=200");
}

/**
* This function will replace all • characters with a html <li> element on the product description box 
*/

$(document).ready(function(){

    $('.productText').wrapInner('<ul class="innerListItems" />');
    if ($('.innerListItems').html() != null) {
        var el = $('.innerListItems').html();
        $('.innerListItems').html(el.replace(/\•/g, '</li><li>'));   
    }

});
