function change()
{
document.Pr_cal.calculate.disabled=false;
}

function getprice (digit, form)
{
	spec_offer = "";
	buy_url = "";
	
if (Pr_cal.CDbox.checked)
{cd=19.99;}else{cd=0;}
if (form.product[1].selected) 
   {
   	buy_url =	"http://www.taskmanagementsoft.com/bitrix/redirect.php?event1=Buy&event2=tm-std&goto="+
				"https://www.regnow.com/softsell/nph-softsell.cgi%3Fitems%3D11236-7,11236-10,11236-15,11236-16%26action%3Dadd_to_cart%26quantity_11236-7%3D"+
				digit+"%26quantity_11236-10%3D1%26quantity_11236-15%3D1%26quantity_11236-16%3D1%26styleid%3D84031%26linkid%3D%23EVENT_GID%23";
   if(digit==1)
		{
			price=digit*149.95;
		}
if(digit==2)
		{
			price=digit*89.95;
		}	
	if(digit==3)
		{
			price=digit*79.95;
		}				
	if(digit==4)
		{
			price=digit*69.95;
		}	
	if(digit==5)
		{
			price=digit*59.95;
		}		
    if(digit==6)
		{
			price=digit*57.95;
		}	
if(digit==7)
		{
			price=digit*55.95;
		}	
	if(digit==8)
		{
			price=digit*53.95;
		}		
    if(digit==9)
		{
			price=digit*51.95;
		}			
	if(digit>=10)
		{
			price=digit*49.95;
		}					
	total=price+cd;
		total_int=Math.floor(total);	
		total_float=Math.round(total*100)-total_int*100;
		
		if(total_float==100)
		{
			total_float="00";
			total_int++;
		}
		else if(total_float<10)
		{
		total_float="0"+total_float;
		}
		total_x=total_int+"."+total_float;
		
		document.all.resultat2.innerHTML="<font class='text'>"+digit+"-user licence of <b>VIP Task Manager Standard</b> costs <b> $"
			+total_x+" USD </b>"+spec_offer+"</font>"
			+"<a href='"+buy_url+"' class='linkorange'><img src='/bitrix/templates/tm_new/images/b_orange_arraw.png' align=absMiddle border='0'>&nbsp;order</a>";
			
	}
  if( form.product[2].selected)
   {
   	buy_url =	"http://www.taskmanagementsoft.com/bitrix/redirect.php?event1=Buy&event2=tm-pro&goto="
				+"https://www.regnow.com/softsell/nph-softsell.cgi%3Fitems%3D11236-8,11236-10,11236-15,11236-16%26action%3Dadd_to_cart%26quantity_11236-8%3D"
				+digit+"%26quantity_11236-10%3D1%26quantity_11236-15%3D1%26quantity_11236-16%3D1%26styleid%3D84031%26linkid%3D%23EVENT_GID%23";
  
	if(digit==1)
	{
		price=digit*199.95;
	}
	if(digit==2)
	{
		price=digit*149.95;
	}	
	if(digit==3)
	{
		price=digit*139.95;
	}				
	if(digit==4)
	{
		price=digit*129.95;
	}	
	if(digit==5)
	{
		price=digit*119.95;
	}	
	if(digit==6)
	{
		price=digit*114.95;
	}	
	if(digit==7)
	{
		price=digit*109.95;
	}	
	if(digit==8||digit==9)
	{
		price=digit*104.95;
	}	
	if(digit>=10)
	{
		price=digit*99.95;
	}	
	total=price+cd;	
	total_int=Math.floor(total);	
	total_float=Math.round(total*100)-total_int*100;
		
	if(total_float==100)
		{
			total_float="00";
			total_int++;
		}
		else if(total_float<10)
		{
		total_float="0"+total_float;
		}
		total_x=total_int+"."+total_float;
		
		document.all.resultat2.innerHTML="<font class='text'>"+digit+"-user license of <b>VIP Task Manager Professional</b> costs <b> $"
			+total_x+" USD </b>"+spec_offer+"</font>"
			+"<a href='"+buy_url+"' class='linkorange'><img src='/bitrix/templates/tm_new/images/b_orange_arraw.png' align=absMiddle border='0'>&nbsp;order</a>";
	}

}
	function showStd(digit, form) 
   {
	   	spec_offer = "";
	buy_url = "";
cd=0;

   	buy_url =	"http://www.taskmanagementsoft.com/bitrix/redirect.php?event1=Buy&event2=tm-std&goto="+
				"https://www.regnow.com/softsell/nph-softsell.cgi%3Fitems%3D11236-7,11236-10,11236-15,11236-16%26action%3Dadd_to_cart%26quantity_11236-7%3D"+
				digit+"%26quantity_11236-10%3D1%26quantity_11236-15%3D1%26quantity_11236-16%3D1%26styleid%3D84031%26linkid%3D%23EVENT_GID%23";
  if(digit==1)
		{
			price=digit*149.95;
		}
if(digit==2)
		{
			price=digit*89.95;
		}	
	if(digit==3)
		{
			price=digit*79.95;
		}				
	if(digit==4)
		{
			price=digit*69.95;
		}	
	if(digit==5)
		{
			price=digit*59.95;
		}		
    if(digit==6)
		{
			price=digit*57.95;
		}	
if(digit==7)
		{
			price=digit*55.95;
		}	
	if(digit==8)
		{
			price=digit*53.95;
		}		
    if(digit==9)
		{
			price=digit*51.95;
		}			
	if(digit>=10)
		{
			price=digit*49.95;
		}	
	total=price+cd;
		total_int=Math.floor(total);	
		total_float=Math.round(total*100)-total_int*100;
		
		if(total_float==100)
		{
			total_float="00";
			total_int++;
		}
		else if(total_float<10)
		{
		total_float="0"+total_float;
		}
		total_x=total_int+"."+total_float;
		
		document.all.resultat3.innerHTML="<font class='style1'><b>$"+total_x+" USD </b>"+spec_offer+"</b></font>";
			
		document.all.resultat5.innerHTML="<a href='"+buy_url+"' class='linkorange'><img src='/bitrix/templates/tm_new/images/b_orange_arraw.png' align=absMiddle border='0'>&nbsp;order</a>";
	}
	
	function showPro(digit, form) 
   {
	   	spec_offer = "";
	buy_url = "";
cd=0;
   	buy_url =	"http://www.taskmanagementsoft.com/bitrix/redirect.php?event1=Buy&event2=tm-pro&goto="
				+"https://www.regnow.com/softsell/nph-softsell.cgi%3Fitems%3D11236-8,11236-10,11236-15,11236-16%26action%3Dadd_to_cart%26quantity_11236-8%3D"
				+digit+"%26quantity_11236-10%3D1%26quantity_11236-15%3D1%26quantity_11236-16%3D1%26styleid%3D84031%26linkid%3D%23EVENT_GID%23";
   
	if(digit==1)
	{
		price=digit*199.95;
	}
	if(digit==2)
	{
		price=digit*149.95;
	}	
	if(digit==3)
	{
		price=digit*139.95;
	}				
	if(digit==4)
	{
		price=digit*129.95;
	}	
	if(digit==5)
	{
		price=digit*119.95;
	}	
	if(digit==6)
	{
		price=digit*114.95;
	}	
	if(digit==7)
	{
		price=digit*109.95;
	}	
	if(digit==8||digit==9)
	{
		price=digit*104.95;
	}	
	if(digit>=10)
	{
		price=digit*99.95;
	}	

		total=price+cd;	
		total_int=Math.floor(total);	
		total_float=Math.round(total*100)-total_int*100;
		
		if(total_float==100)
		{
			total_float="00";
			total_int++;
		}
		else if(total_float<10)
		{
		total_float="0"+total_float;
		}
		total_x=total_int+"."+total_float;
		
		document.all.resultat4.innerHTML="<font class='style1'><b> $"+total_x+" USD </b>"+spec_offer+"</font>";
			
		document.all.resultat6.innerHTML="<a href='"+buy_url+"' class='linkorange'><img src='/bitrix/templates/tm_new/images/b_orange_arraw.png' align=absMiddle border='0'>&nbsp;order</a>";
				}