﻿function submitForm(id, cnt)
{
	document.form1.quantity.value = document.getElementById("quantity_"+cnt).value;
	document.form1.contractId.value = id;
	document.form1.submit();
}

function openUpdatePage()
{   
    if (document.getElementById("txtCustomer").value.length == 0)
    {
        alert("please enter Customer ID and try again");
        return;
    }
    window.location.href = '../Upgrade/' + '?CustomerID=' + document.getElementById("txtCustomer").value;       
}
oWin = null;
 
function RedirectToDownloadThanks ()
{
    setTimeout("self.location.href=\"" + sSiteRootUrl + "DownloadThankYou.aspx\"",500)

    //window.location.href = sSiteRootUrl + "Download/ThankYou.aspx";
}



function RedirectToDownloadThanks ()
{
    //window.location.href = sSiteRootUrl + "Download/ThankYou.aspx";
    setTimeout("self.location.href=\"" + sSiteRootUrl + "DownloadThankYou.aspx\"",500)
}
function ShowPopup()
{
    if(oWin) {
        oWin.close();
        oWin = null;
    }
    else
		var url = "../Support/imagepoup.htm";
        oWin = window.open(url, "helpPopup", "height=310,width=410,status=yes,toolbar=no,menubar=no,location=no");
}