function addit()
{
var articleamt;
var total;
var bonus;
var arcount=document.homeForm1.articlescount.value;
////alert("Articles Count:"+document.homeForm1.articlescount.value)
////alert("Rating:"+document.homeForm1.rating.value)
//alert("Grade:"+document.homeForm1.grade.value)




        //    FREE

if(document.homeForm1.plan.value=='free')
{
	
	if(arcount<=10)
	{
		if(document.homeForm1.articletype.value=='S')
		{
			//alert("Article Type: Short");
			articleamt=100;
			bonus=0;
		}
		if(document.homeForm1.articletype.value=='L')
		{
			//alert("Article Type: Long");
			articleamt=160;
			bonus=0;
		}
		
		
	}
	else
	{

	
	if(document.homeForm1.rating.value==3)
	{
		if(document.homeForm1.articletype.value=='S')
		{
			////alert("A+:3:Short");
			articleamt=60;
		}
		if(document.homeForm1.articletype.value=='L')
		{
//			//alert("A+:3:Long");
			articleamt=120;
		}
	
		
	}
	
	if(document.homeForm1.rating.value==4)
	{
		if(document.homeForm1.articletype.value=='S')
		{
//			//alert("A+:4:Short");
			articleamt=80;
		}
		if(document.homeForm1.articletype.value=='L')
		{
//			//alert("A+:4:Long");
			articleamt=140;
		}
		
	}
	
	if(document.homeForm1.rating.value==5)
	{
		if(document.homeForm1.articletype.value=='S')
		{
//			////alert("A+:5:Short");
			articleamt=100;
		}
		if(document.homeForm1.articletype.value=='L')
		{
			////alert("A+:5:Long");
			articleamt=160;
		}
		
	}
	
	if(arcount<50 )
	{
		bonus=0;
		////alert("Bonus:0");
	}
	if(arcount>50 && arcount<=100)
	{
		bonus=5;
		//alert("Bonus:5");
	}
	if(arcount>100 && arcount<=150)
	{
		bonus=10;
		//alert("Bonus:10");
	}
	if(arcount>150)
	{
		bonus=15;
		//alert("Bonus:15");
	}
	}

}


			//   STANDARD


if(document.homeForm1.plan.value=='standard')
{
	
	if(arcount<=10)
	{
		if(document.homeForm1.articletype.value=='S')
		{
			//alert("Article Type: Short");
			articleamt=80;
			bonus=0;
		}
		if(document.homeForm1.articletype.value=='L')
		{
			//alert("Article Type: Long");
			articleamt=160;
			bonus=0;
		}
		if(document.homeForm1.articletype.value=='F')
		{
			//alert("Article Type: Long");
			articleamt=160;
			bonus=0;
		}
	}
	else
	{

	
	if(document.homeForm1.rating.value==3)
	{
		if(document.homeForm1.articletype.value=='S')
		{
			//alert("B+:3:Short");
			articleamt=70;
		}
		if(document.homeForm1.articletype.value=='L')
		{
			//alert("B+:3:Long");
			articleamt=140;
		}
		if(document.homeForm1.articletype.value=='F')
		{
			//alert("B+:3:Long");
			articleamt=160;
		}
	}
	if(document.homeForm1.rating.value==4)
	{
		if(document.homeForm1.articletype.value=='S')
		{
			//alert("B+:4:Short");
			articleamt=90;
		}
		if(document.homeForm1.articletype.value=='L')
		{
			//alert("A+:4:Long");
			articleamt=160;
		}
		if(document.homeForm1.articletype.value=='F')
		{
			//alert("A+:4:Long");
			articleamt=180;
		}
	}
	if(document.homeForm1.rating.value==5)
	{
		if(document.homeForm1.articletype.value=='S')
		{
			//alert("A+:5:Short");
			articleamt=110;
		}
		if(document.homeForm1.articletype.value=='L')
		{
			//alert("A+:5:Long");
			articleamt=180;
		}
		if(document.homeForm1.articletype.value=='F')
		{
			//alert("A+:5:Long");
			articleamt=200;
		}
	}
	if(arcount<50 )
	{
		bonus=0;
		//alert("Bonus:0");
	}
	if(arcount>50 && arcount<=100)
	{
		bonus=5;
		//alert("Bonus:5");
	}
	if(arcount>100 && arcount<=150)
	{
		bonus=10;
		//alert("Bonus:10");
	}
	if(arcount>150)
	{
		bonus=15;
		//alert("Bonus:15");
	}
	}

}




		//    PREMIUM



	if(document.homeForm1.plan.value=='premium')
{
	
	if(arcount<=10)
	{
		if(document.homeForm1.articletype.value=='S')
		{
			//alert("Article Type: Short");
			articleamt=90;
			bonus=0;
		}
		if(document.homeForm1.articletype.value=='L')
		{
			//alert("Article Type: Long");
			articleamt=180;
			bonus=0;
		}
		if(document.homeForm1.articletype.value=='F')
		{
			//alert("Article Type: Long");
			articleamt=200;
			bonus=0;
		}
	}
	else
	{

	
	if(document.homeForm1.rating.value==3)
	{
		if(document.homeForm1.articletype.value=='S')
		{
			//alert("A+:3:Short");
			articleamt=90;
		}
		if(document.homeForm1.articletype.value=='L')
		{
			//alert("A+:3:Long");
			articleamt=180;
		}
		if(document.homeForm1.articletype.value=='F')
		{
			//alert("A+:3:Long");
			articleamt=200;
		}
	}
	
	if(document.homeForm1.rating.value==4)
	{
		if(document.homeForm1.articletype.value=='S')
		{
			//alert("A+:4:Short");
			articleamt=110;
		}
		if(document.homeForm1.articletype.value=='L')
		{
			//alert("A+:4:Long");
			articleamt=200;
		}
		if(document.homeForm1.articletype.value=='F')
		{
			//alert("A+:4:Long");
			articleamt=220;
		}
	}
	
	if(document.homeForm1.rating.value==5)
	{
		if(document.homeForm1.articletype.value=='S')
		{
			//alert("A+:5:Short");
			articleamt=130;
		}
		if(document.homeForm1.articletype.value=='L')
		{
			//alert("A+:5:Long");
			articleamt=220;
		}
		if(document.homeForm1.articletype.value=='F')
		{
			//alert("A+:5:Long");
			articleamt=240;
		}
	}
	
	if(arcount<50 )
	{
		bonus=0;
		//alert("Bonus:0");
	}
	if(arcount>50 && arcount<=100)
	{
		bonus=5;
		//alert("Bonus:5");
	}
	if(arcount>100 && arcount<=150)
	{
		bonus=10;
		//alert("Bonus:10");
	}
	if(arcount>150)
	{
		bonus=15;
		//alert("Bonus:15");
	}
	}

}



total=articleamt*arcount;
var finalbonus=total*(bonus/100);
document.homeForm1.bonus.value=bonus+"%";
document.homeForm1.total.value=total+finalbonus;
//alert("Amount:"+total);

////alert("Bonus:"+document.homeForm1.bonus.value)
////alert(document.homeForm1.total.value)
//= parseInt(document.homeForm1.a.value) + parseInt(document.homeForm1.b.value)
}
function clearform()
{
document.homeForm1.articlescount.value= " ";
//document.homeForm1.rating.value= " ";
//document.homeForm1.grade.value= " ";
document.homeForm1.bonus.value= " ";
document.homeForm1.total.value= " ";
}
function jumpplan(){
var plan= document.getElementById("plans").value;
 if(plan=="free"){
 window.location="payment_free.html"; 
 }
 if(plan=="standard"){
 window.location="payment_standard.html"; 
 }
 if(plan=="premium"){
 window.location="payment_premium.html"; 
 }
 

}

