

function showProduct(PackageID,Type,Price)
{

    if (Type == 2){
        PackageID = document.forms[0].elements[Price].value;
    }
 window.location.href='ProductDetails.aspx?PackageID=' + PackageID + '&Type=' + Type;

}


function OpenCalendar(idname, postBack)
{

	popUp = window.open('../../Common/Calender.aspx?formname=' + document.forms[0].name + 
		'&id=' + idname + '&selected=' + document.forms[0].elements[idname].value + '&postBack=' + postBack, 
		'popupcal', 
		'width=250,height=260,left=200,top=250,location=no');
}
function SetDate(formName, id, newDate, postBack)
{
	
	eval('var theform = document.' + formName + ';');
	popUp.close();
	
	
	if (id == 'ctl00_ContentPane_spa1_txtPkNotValid' || id=='ctl00_ContentPane_spa1_txtOfferNotValid') 
	    {
	        theform.elements[id].value += newDate+"\n";    
        }
        else
        {
            theform.elements[id].value = newDate;    
        }
	if (postBack)
		__doPostBack(id,'');
}

