function show_wizard_box(type) {	


		var XMLHttpRequestObject = false; 

		if (window.XMLHttpRequest) {
		  XMLHttpRequestObject = new XMLHttpRequest();
		} else if (window.ActiveXObject) {
		  XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");
		}

		if(XMLHttpRequestObject) {
		    var now = new Date();
		    var obj = document.getElementById("offer_row");
		    var obj1 = document.getElementById("wizard_help_box");
		    var obj2 = document.getElementById("subscription_box");
		    var obj3 = document.getElementById("rightbox");
		    XMLHttpRequestObject.open("GET", "https://www.anistock.com/wizard.cgi?type=" + type + "&time=" + now.getTime());


		  XMLHttpRequestObject.onreadystatechange = function() 
		  { 
		  
		    if (XMLHttpRequestObject.readyState == 1)
		    	{
			  obj1.innerHTML = '<img src="https://www.anistock.com/images/aloader.gif" alt="Loading" align="middle" />';
			  obj2.innerHTML = '<img src="https://www.anistock.com/images/aloader.gif" alt="Loading" align="middle" />';
			  obj3.innerHTML = '<img src="https://www.anistock.com/images/aloader.gif" alt="Loading" align="middle" />';
		    	}
		  
		  
		    if (XMLHttpRequestObject.readyState == 4 && 
		      XMLHttpRequestObject.status == 200) { 
		      obj.innerHTML = XMLHttpRequestObject.responseText;

			var price_obj = document.getElementById("wizard_price");
			var clip_obj = document.getElementById("wizard_clip_price");
			var help_obj = document.getElementById("wizard_help_box");

			if(type == 1)
				{
				var price = '$11.00';
				var clip_price = 'Anistock iClipart Bundle<br>&nbsp;';
				var title = '<span style="float:left;text-decoration:underline;color:green;">ANISTOCK BROADPRO 1</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br><strong>1</strong> single download of your choice.<br><br>Download <strong>ANY full Broadcast</strong> clip.<br><br>Select from over 25,000 clips.</span>';		
				}
			else
				{
				var price = '$25.00';
				var clip_price = 'Anistock WebPro 25<br>That is only $1.00 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK WEBPRO 25</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br><strong>25</strong> downloads of <strong>ANY</strong> Medium QuickTime, mobile or Flash (480x360)  - 1 year<br><br>Fixed costs - Freedom to use as you want.<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';		
				}

			price_obj.innerHTML = price;	
			clip_obj.innerHTML = clip_price;	
			help_obj.innerHTML = help_text;	


		    } 
		  } 

		  XMLHttpRequestObject.send(null); 
		}


}

function display_wizard(id) {	


	var identifer = 'a_'+id; 
 	var radio_obj = document.getElementById(identifer);
 	radio_obj.checked = true;


    var price_obj = document.getElementById("wizard_price");
    var clip_obj = document.getElementById("wizard_clip_price");
    var help_obj = document.getElementById("wizard_help_box");

	if(id== 1)
		{
				var price = '$139.95';
				var clip_price = 'Anistock iClipart Bundle<br>&nbsp;';
				var title = '<span style="float:left;text-decoration:underline;color:green;">iClipart Video Bundle</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br><strong>120</strong> Full Broadcast Videos.<br><br>Access to <strong>iClipart Library</strong> clip.<br><br>Select from over 25,000 clips.</span>';		
				document.getElementById("subscription_type").value = 1;
				var subscription_name = '139.95';
		}
	else if(id== 5)
		{
				var price = '$30.00';
				var clip_price = 'Anistock WebPro 25<br>That is only $1.00 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:green;">ANISTOCK WEBPRO 25</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br><strong>25</strong> downloads of <strong>ANY</strong> Medium QuickTime, mobile or Flash (480x360)  - 1 year<br><br>Fixed costs - Freedom to use as you want.<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';		
				document.getElementById("subscription_type").value = 5;
				var subscription_name = '30.00';
		}
	else if(id== 7)
		{
				var price = '$11.00';
				var clip_price = 'Anistock BroadPro 1<br>&nbsp;';
				var title = '<span style="float:left;text-decoration:underline;color:green;">ANISTOCK BROADPRO 1</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br><strong>1</strong> single download of your choice.<br><br>Download <strong>ANY full Broadcast</strong> clip.<br><br>Select from over 25,000 clips.</span>';		
				document.getElementById("subscription_type").value = 7;
				var subscription_name = '11.00';
		}
	else if(id== 4)
		{
				var price = '$45.00';
				var clip_price = 'Anistock BroadPro 25<br>That is only $1.60 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:green;">ANISTOCK BROADPRO 25</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br><strong>25</strong> downloads of <strong>ANY FULL</strong> BROADCAST clips<br><br>Fixed costs - Freedom to use as you want.<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';		
				document.getElementById("subscription_type").value = 4;
				var subscription_name = '45.00';
		}
	else if(id== 11)
		{
				var price = '$110.00';
				var clip_price = 'Anistock BroadPro 25<br>That is only $1.10 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:green;">ANISTOCK BROADPRO 100</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br><strong>100</strong> downloads of <strong>ANY FULL</strong> BROADCAST clips<br><br>Fixed costs - Freedom to use as you want.<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';		
				document.getElementById("subscription_type").value = 1;
				var subscription_name = '110.00';
		}		
	else	{}

	price_obj.innerHTML = price;	
	clip_obj.innerHTML = clip_price;	
	help_obj.innerHTML = help_text;	
   	

			var vat_rate			=	'21';
			var Ireland			=	'372'
			var EU				=	'826'
			var currency_symbol 		= 	'&#36;';



	// VAT Logic is as follows:
	// If country is Ireland, then VAT is always calculated
	// If region is EU, and decent value entered into the vat field, then no VAT calculated otherwise VAT charged.
	// All other regions is VAT free.

		var region_value 	= 	document.orderform.location.value;

		var vat_value 		= 	document.orderform.vat.value;

	// Get string length for Vat Value... let's say vat number should be at least alphacharacters.

		var vat_length		=	vat_value.length;

		if(region_value == '372')
			{
			vat_total 	= (subscription_name * vat_rate) / 100;

			}
		else if ((region_value == '826')&&(vat_length <= 7))
			{
			vat_total 	= (subscription_name * vat_rate) / 100;

			}
		else
			{
			vat_total 	= 0;

			}


		var total_cost 		=	((subscription_name * 1)+ vat_total);	
		total_cost		= 	total_cost.toFixed(2);
		vat_total		= 	vat_total.toFixed(2);


		formatted_subscription_name		=	currency_symbol +' '+ subscription_name;
		formatted_vat_total			=	currency_symbol +' '+ vat_total;
		formatted_total_cost			=	currency_symbol +' '+ total_cost;

		SetLayerText('exvat_Label', formatted_subscription_name);
		SetLayerText('vat_Label', formatted_vat_total);
		SetLayerText('incvat_Label', formatted_total_cost);

}


function UpdateBuild(id) {	
 

    var price_obj = document.getElementById("wizard_price");
    var clip_obj = document.getElementById("wizard_clip_price");
    var help_obj = document.getElementById("wizard_help_box");

    var format_type = document.getElementById("format_type").value;
    var quantity_field = document.getElementById("quantity_field").value;

	if(((quantity_field == 42)&&(format_type == 20))||(id == 16))
		{
		// WebPro 40
				var price = '$38.00';
				var clip_price = 'Anistock WebPro 40<br>That is only $0.95 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK WEBPRO 40</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br>Buy yourself CLIPS in bulk and <strong>save BIG.</strong> Discounted price - valid 1 Year.<br><br><strong>40</strong> downloads of <strong>ANY</strong> Medium QuickTime, mobile or Flash (480x360).<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';
				document.getElementById("subscription_type").value = 16;
				var subscription_name = '38.00';
		}
	else if(((quantity_field == 43)&&(format_type == 20))||(id == 17))
		{
		// WebPro 60
				var price = '$54.00';
				var clip_price = 'Anistock WebPro 60<br>That is only $0.90 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK WEBPRO 60</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br>Buy yourself CLIPS in bulk and <strong>save BIG.</strong> Discounted price - valid 1 Year.<br><br><strong>60</strong> downloads of <strong>ANY</strong> Medium QuickTime, mobile or Flash (480x360).<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';
				document.getElementById("subscription_type").value = 17;
				var subscription_name = '54.00';
		}
	else if(((quantity_field == 44)&&(format_type == 20))||(id == 18))
		{
		// WebPro 80
				var price = '$68.00';
				var clip_price = 'Anistock WebPro 80<br>That is only $0.85 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK WEBPRO 80</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br>Buy yourself CLIPS in bulk and <strong>save BIG.</strong> Discounted price - valid 1 Year.<br><br><strong>80</strong> downloads of <strong>ANY</strong> Medium QuickTime, mobile or Flash (480x360).<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';
				document.getElementById("subscription_type").value = 18;
				var subscription_name = '68.00';
		}
	else if(((quantity_field == 45)&&(format_type == 20))||(id == 19))
		{
		// WebPro 100
				var price = '$80.00';
				var clip_price = 'Anistock WebPro 100<br>That is only $0.80 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK WEBPRO 100</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br>Buy yourself CLIPS in bulk and <strong>save BIG.</strong> Discounted price - valid 1 Year.<br><br><strong>100</strong> downloads of <strong>ANY</strong> Medium QuickTime, mobile or Flash (480x360).<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';
				document.getElementById("subscription_type").value = 19;
				var subscription_name = '80.00';
		}
	else if(((quantity_field == 46)&&(format_type == 20))||(id == 3))
		{
		// WebPro 120
				var price = '$90.00';
				var clip_price = 'Anistock WebPro 120<br>That is only $0.75 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK WEBPRO 120</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br>Buy yourself CLIPS in bulk and <strong>save BIG.</strong> Discounted price - valid 1 Year.<br><br><strong>120</strong> downloads of <strong>ANY</strong> Medium QuickTime, mobile or Flash (480x360).<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';
				document.getElementById("subscription_type").value = 3;
				var subscription_name = '90.00';
		}
	else if(((quantity_field == 47)&&(format_type == 20))||(id == 20))
		{
		// WebPro 140
				var price = '$98.00';
				var clip_price = 'Anistock WebPro 140<br>That is only $0.70 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK WEBPRO 140</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br>Buy yourself CLIPS in bulk and <strong>save BIG.</strong> Discounted price - valid 1 Year.<br><br><strong>140</strong> downloads of <strong>ANY</strong> Medium QuickTime, mobile or Flash (480x360).<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';
				document.getElementById("subscription_type").value = 20;
				var subscription_name = '98.00';
		}
	else if(((quantity_field == 48)&&(format_type == 20))||(id == 21))
		{
		// WebPro 160
				var price = '$106.00';
				var clip_price = 'Anistock WebPro 160<br>That is only $0.66 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK WEBPRO 160</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br>Buy yourself CLIPS in bulk and <strong>save BIG.</strong> Discounted price - valid 1 Year.<br><br><strong>160</strong> downloads of <strong>ANY</strong> Medium QuickTime, mobile or Flash (480x360).<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';
				document.getElementById("subscription_type").value = 21;
				var subscription_name = '106.00';
		}
	else if(((quantity_field == 49)&&(format_type == 20))||(id == 22))
		{
		// WebPro 180
				var price = '$112.00';
				var clip_price = 'Anistock WebPro 180<br>That is only $0.62 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK WEBPRO 180</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br>Buy yourself CLIPS in bulk and <strong>save BIG.</strong> Discounted price - valid 1 Year.<br><br><strong>180</strong> downloads of <strong>ANY</strong> Medium QuickTime, mobile or Flash (480x360).<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';
				document.getElementById("subscription_type").value = 22;
				var subscription_name = '112.00';
		}
	else if(((quantity_field == 50)&&(format_type == 20))||(id == 23))
		{
		// WebPro 200
				var price = '$118.00';
				var clip_price = 'Anistock WebPro 200<br>That is only $0.59 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK WEBPRO 200</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br>Buy yourself CLIPS in bulk and <strong>save BIG.</strong> Discounted price - valid 1 Year.<br><br><strong>200</strong> downloads of <strong>ANY</strong> Medium QuickTime, mobile or Flash (480x360).<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';
				document.getElementById("subscription_type").value = 23;
				var subscription_name = '118.00';
		}
	else if(((quantity_field == 41)&&(format_type == 30))||(id == 4))
		{
		// BroadPro 25
				var price = '$45.00';
				var clip_price = 'Anistock BroadPro 25<br>That is only $1.80 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK BROADPRO 25</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br>Buy yourself CLIPS in bulk and <strong>save BIG.</strong> Discounted price - valid 1 Year.<br><br><strong>25</strong> downloads of <strong>ANY FULL BROADCAST</strong> Clips.<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';
				document.getElementById("subscription_type").value = 4;
				var subscription_name = '40.00';
		}
	else if(((quantity_field == 42)&&(format_type == 30))||(id == 8))
		{
		// BroadPro 40
				var price = '$57.00';
				var clip_price = 'Anistock BroadPro 40<br>That is only $1.43 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK BROADPRO 40</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br>Buy yourself CLIPS in bulk and <strong>save BIG.</strong> Discounted price - valid 1 Year.<br><br><strong>40</strong> downloads of <strong>ANY FULL BROADCAST</strong> Clips.<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';
				document.getElementById("subscription_type").value = 8;
				var subscription_name = '57.00';
		}
	else if(((quantity_field == 43)&&(format_type == 30))||(id == 9))
		{
		// BroadPro 60
				var price = '$75.00';
				var clip_price = 'Anistock BroadPro 60<br>That is only $1.25 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK BROADPRO 60</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br>Buy yourself CLIPS in bulk and <strong>save BIG.</strong> Discounted price - valid 1 Year.<br><br><strong>60</strong> downloads of <strong>ANY FULL BROADCAST</strong> Clips.<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';
				document.getElementById("subscription_type").value = 9;
				var subscription_name = '75.00';
		}
	else if(((quantity_field == 44)&&(format_type == 30))||(id == 10))
		{
		// BroadPro 80
				var price = '$90.00';
				var clip_price = 'Anistock BroadPro 80<br>That is only $1.13 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK BROADPRO 80</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br>Buy yourself CLIPS in bulk and <strong>save BIG.</strong> Discounted price - valid 1 Year.<br><br><strong>80</strong> downloads of <strong>ANY FULL BROADCAST</strong> Clips.<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';
				document.getElementById("subscription_type").value = 10;
				var subscription_name = '90.00';
		}
	else if(((quantity_field == 45)&&(format_type == 30))||(id == 11))
		{
		// BroadPro 100
				var price = '$110.00';
				var clip_price = 'Anistock BroadPro 100<br>That is only $1.10 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK BROADPRO 100</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br>Buy yourself CLIPS in bulk and <strong>save BIG.</strong> Discounted price - valid 1 Year.<br><br><strong>100</strong> downloads of <strong>ANY FULL BROADCAST</strong> Clips.<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';
				document.getElementById("subscription_type").value = 11;
				var subscription_name = '101.00';
		}
	else if(((quantity_field == 46)&&(format_type == 30))||(id == 2))
		{
		// BroadPro 120
				var price = '$110.00';
				var clip_price = 'Anistock BroadPro 120<br>That is only $0.92 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK BROADPRO 120</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br>Buy yourself CLIPS in bulk and <strong>save BIG.</strong> Discounted price - valid 1 Year.<br><br><strong>120</strong> downloads of <strong>ANY FULL BROADCAST</strong> Clips.<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';
				document.getElementById("subscription_type").value = 2;
				var subscription_name = '110.00';
		}
	else if(((quantity_field == 47)&&(format_type == 30))||(id == 12))
		{
		// BroadPro 140

		
				var price = '$126.00';
				var clip_price = 'Anistock BroadPro 140<br>That is only $0.90 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK BROADPRO 140</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br>Buy yourself CLIPS in bulk and <strong>save BIG.</strong> Discounted price - valid 1 Year.<br><br><strong>140</strong> downloads of <strong>ANY FULL BROADCAST</strong> Clips.<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';
				document.getElementById("subscription_type").value = 12;
				var subscription_name = '126.00';
		}
	else if(((quantity_field == 48)&&(format_type == 30))||(id == 13))
		{
		// BroadPro 160
				var price = '$137.00';
				var clip_price = 'Anistock BroadPro 160<br>That is only $0.86 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK BROADPRO 160</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br>Buy yourself CLIPS in bulk and <strong>save BIG.</strong> Discounted price - valid 1 Year.<br><br><strong>160</strong> downloads of <strong>ANY FULL BROADCAST</strong> Clips.<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';
				document.getElementById("subscription_type").value = 13;
				var subscription_name = '137.00';
		}
	else if(((quantity_field == 49)&&(format_type == 30))||(id == 14))
		{
		// BroadPro 180
				var price = '$147.00';
				var clip_price = 'Anistock BroadPro 180<br>That is only $0.82 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK BROADPRO 180</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br>Buy yourself CLIPS in bulk and <strong>save BIG.</strong> Discounted price - valid 1 Year.<br><br><strong>180</strong> downloads of <strong>ANY FULL BROADCAST</strong> Clips.<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';
				document.getElementById("subscription_type").value = 14;
				var subscription_name = '147.00';
		}
	else if(((quantity_field == 50)&&(format_type == 30))||(id == 15))
		{
		// BroadPro 200
				var price = '$156.00';
				var clip_price = 'Anistock BroadPro 200<br>That is only $0.78 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK BROADPRO 200</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br>Buy yourself CLIPS in bulk and <strong>save BIG.</strong> Discounted price - valid 1 Year.<br><br><strong>200</strong> downloads of <strong>ANY FULL BROADCAST</strong> Clips.<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';
				document.getElementById("subscription_type").value = 15;
				var subscription_name = '156.00';
		}
	else if(((quantity_field == 41)&&(format_type == 20))||(id == 5))
		{
		// WebPro 25

				var price = '$30.00';
				var clip_price = 'Anistock WebPro 25<br>That is only $1.20 per Clip';
				var title = '<span style="float:left;text-decoration:underline;color:maroon;">ANISTOCK WEBPRO 25</span>';
				var help_text = '<label class="signinhead" style="width:220px;border-bottom:none;padding:0;">'+title+'</label>';
				help_text+= '<span class="promptmessage" style="text-align:left;width:220px;padding:0 0 10px;"><br><br><strong>25</strong> downloads of <strong>ANY</strong> Medium QuickTime, mobile or Flash (480x360)  - 1 year<br><br>Fixed costs - Freedom to use as you want.<br><br>No daily limits!!!<br>Hi-Definition upgrade/$10 per clip</span>';		
				document.getElementById("subscription_type").value = 5;
				var subscription_name = '25.00';
		}
	else
		{
		
		}

	price_obj.innerHTML = price;	
	clip_obj.innerHTML = clip_price;	
	help_obj.innerHTML = help_text;	




			var vat_rate			=	'21';
			var Ireland			=	'372'
			var EU				=	'826'
			var currency_symbol 		= 	'&#36;';


	// VAT Logic is as follows:
	// If country is Ireland, then VAT is always calculated
	// If region is EU, and decent value entered into the vat field, then no VAT calculated otherwise VAT charged.
	// All other regions is VAT free.

		var region_value 	= 	document.orderform.location.value;
		var vat_value 		= 	document.orderform.vat.value;


	// Get string length for Vat Value... let's say vat number should be at least alphacharacters.

		var vat_length		=	vat_value.length;

		if(region_value == '372')
			{
			vat_total 	= (subscription_name * vat_rate) / 100;

			}
		else if ((region_value == '826')&&(vat_length <= 7))
			{
			vat_total 	= (subscription_name * vat_rate) / 100;

			}
		else
			{
			vat_total 	= 0;

			}

		var total_cost 		=	((subscription_name * 1)+ vat_total);	
		total_cost		= 	total_cost.toFixed(2);


		 vat_total	= 	vat_total.toFixed(2);

		formatted_subscription_name		=	currency_symbol +' '+ subscription_name;
		formatted_vat_total			=	currency_symbol +' '+ vat_total;
		formatted_total_cost			=	currency_symbol +' '+ total_cost;

		SetLayerText('exvat_Label', formatted_subscription_name);
		SetLayerText('vat_Label', formatted_vat_total);
		SetLayerText('incvat_Label', formatted_total_cost);

}


function go_subscription_page()
{
	var new_sub = document.getElementById("subscription_type").value;
	window.location = "https://www.anistock.com/register.cgi?submit=display&uid=" + new_sub;

}


function MakeChange() 
{

	var subscription_id = 	document.getElementById("subscription_type").value;
	if((subscription_id == 7)|| (subscription_id == 5)|| (subscription_id == 4)|| (subscription_id == 1))	
	{
	display_wizard(subscription_id) 
	}
	else
	{
	UpdateBuild(subscription_id)
	}


}

