var discount_rate1=0;
var discount_rate2=5/100;
var discount_rate3=7/100;
var discount_rate4=10/100;
var discount_rate5=12/100;
var discount_rate6=18/100;
var discount_rate7=25/100;
var discount_rate8=30/100;
var discount_rate9=40/100;
var discount_rate10=50/100;
var proditem1='';
var proditem2='';
var proditem3='';
var prodquantity='&quantity=1';
var prodcurrency='&currency=USD';
var prodlocale='&locale=EN';
var reffid='&linkid=JosytalOrderPg&ss_coupon=JOSY-OH1K';

function langSel()
{
with(document.forms.lang)
{
if(locale.options[0].selected){prodlocale='&locale='+'EN';}
if(locale.options[1].selected){prodlocale='&locale='+'DE';}
if(locale.options[2].selected){prodlocale='&locale='+'ES';}
if(locale.options[3].selected){prodlocale='&locale='+'FR';}
if(locale.options[4].selected){prodlocale='&locale='+'IT';}
if(locale.options[5].selected){prodlocale='&locale='+'PT';}
if(locale.options[6].selected){prodlocale='&locale='+'NL';}
if(locale.options[7].selected){prodlocale='&locale='+'SV';}
if(locale.options[8].selected){prodlocale='&locale='+'FI';}
}
}
//azplannerprd1 begin
function selItem1_1()
{
with(document.forms.calc1)
{
if(item1_1.checked=true){proditem1='&item='+item1_1.value; item1_2.checked=false;}
}
}

function selItem1_2()
{
with(document.forms.calc1)
{
if(item1_2.checked=true){proditem1='&item='+item1_2.value; item1_1.checked=false;}  
}
}

function buyItem1Submit()
{
with(document.forms.calc1)
{
if(proditem1 == ""){proditem1='&item='+item1_1.value;}
prodquantity='&quantity='+product_1_quantity.value;
prodcurrency='&currency='+currcy.value;
calc1.action='http://www.regnow.com/softsell/nph-softsell.cgi?ss_short_order=true&action=add_to_cart'+proditem1+prodquantity+prodcurrency+prodlocale+reffid;
//alert(calc1.action);
}
}

function product_1_sums()
{
with(document.forms.calc1)
{
if(product_1_quantity.value<3)
{
product_1_total_s.value=((1*u_price.value)*(product_1_quantity.value))-((1*u_price.value)*(product_1_quantity.value)*(discount_rate1));
product_1_discount.value=((1*u_price.value)*(product_1_quantity.value))-(product_1_total_s.value);
}

if((product_1_quantity.value>=3)&&(product_1_quantity.value<=5))
{
product_1_total_s.value=((1*u_price.value)*(product_1_quantity.value))-((1*u_price.value)*(product_1_quantity.value)*(discount_rate2));
product_1_discount.value=-(((1*u_price.value)*(product_1_quantity.value))-(product_1_total_s.value));
}

if((product_1_quantity.value>5)&&(product_1_quantity.value<=8))
{
product_1_total_s.value=((1*u_price.value)*(product_1_quantity.value))-((1*u_price.value)*(product_1_quantity.value)*(discount_rate3));
product_1_discount.value=-(((1*u_price.value)*(product_1_quantity.value))-(product_1_total_s.value));
}

if((product_1_quantity.value>8)&&(product_1_quantity.value<=10))
{
product_1_total_s.value=((1*u_price.value)*(product_1_quantity.value))-((1*u_price.value)*(product_1_quantity.value)*(discount_rate4));
product_1_discount.value=-(((1*u_price.value)*(product_1_quantity.value))-(product_1_total_s.value));
}

if((product_1_quantity.value>10)&&(product_1_quantity.value<=15))
{
product_1_total_s.value=((1*u_price.value)*(product_1_quantity.value))-((1*u_price.value)*(product_1_quantity.value)*(discount_rate5));
product_1_discount.value=-(((1*u_price.value)*(product_1_quantity.value))-(product_1_total_s.value));
}

if((product_1_quantity.value>15)&&(product_1_quantity.value<=20))
{
product_1_total_s.value=((1*u_price.value)*(product_1_quantity.value))-((1*u_price.value)*(product_1_quantity.value)*(discount_rate6));
product_1_discount.value=-(((1*u_price.value)*(product_1_quantity.value))-(product_1_total_s.value));
}

if((product_1_quantity.value>20)&&(product_1_quantity.value<=100))
{
product_1_total_s.value=((1*u_price.value)*(product_1_quantity.value))-((1*u_price.value)*(product_1_quantity.value)*(discount_rate7));
product_1_discount.value=-(((1*u_price.value)*(product_1_quantity.value))-(product_1_total_s.value));
}

if((product_1_quantity.value>100)&&(product_1_quantity.value<=500))
{
product_1_total_s.value=((1*u_price.value)*(product_1_quantity.value))-((1*u_price.value)*(product_1_quantity.value)*(discount_rate8));
product_1_discount.value=-(((1*u_price.value)*(product_1_quantity.value))-(product_1_total_s.value));
}

if((product_1_quantity.value>500)&&(product_1_quantity.value<=1000))
{
product_1_total_s.value=((1*u_price.value)*(product_1_quantity.value))-((1*u_price.value)*(product_1_quantity.value)*(discount_rate9));
product_1_discount.value=-(((1*u_price.value)*(product_1_quantity.value))-(product_1_total_s.value));
}

if(product_1_quantity.value>1000)
{
product_1_total_s.value=((1*u_price.value)*(product_1_quantity.value))-((1*u_price.value)*(product_1_quantity.value)*(discount_rate10));
product_1_discount.value=-(((1*u_price.value)*(product_1_quantity.value))-(product_1_total_s.value));
}
//end all ifs
}
}

function product_1_rate()
{
with(document.forms.calc1)
{
if((isNaN(product_1_quantity.value))||(product_1_quantity.value<1)){alert("Please enter figure for quantity (Number of users)"); quantity.focus(); return;}
product_1_discount.value=0;
if(pricecurrency.options[0].selected){u_price.value=parseFloat(29.99); currcy.value="USD";}
if(pricecurrency.options[1].selected){u_price.value=parseFloat(22.98);currcy.value="EUR";}
if(pricecurrency.options[2].selected){u_price.value=parseFloat(20.88);currcy.value="GBP";}
if(pricecurrency.options[3].selected){u_price.value=parseFloat(32.21);currcy.value="CAD";}
if(pricecurrency.options[4].selected){u_price.value=parseFloat(34.46);currcy.value="AUD";}
if(pricecurrency.options[5].selected){u_price.value=parseFloat(2863.30);currcy.value="JPY";}
if(product_1_quantity.value>0){product_1_sums();} else {product_1_total_s.value=0; product_1_discount.value=0;}
}
}
//end prd1
//azcontactsmngrprd2 begin
function selItem2_1()
{
with(document.forms.calc2)
{
if(item2_1.checked=true){proditem2='&item='+item2_1.value; item2_2.checked=false;}
}
}

function selItem2_2()
{
with(document.forms.calc2)
{
if(item2_2.checked=true){proditem2='&item='+item2_2.value; item2_1.checked=false;}  
}
}

function buyItem2Submit()
{
with(document.forms.calc2)
{
if(proditem2 == ""){proditem2='&item='+item2_1.value;}
prodquantity='&quantity='+product_2_quantity.value;
prodcurrency='&currency='+currcy.value;
calc2.action='http://www.regnow.com/softsell/nph-softsell.cgi?ss_short_order=true&action=add_to_cart'+proditem2+prodquantity+prodcurrency+prodlocale+reffid;
//alert(calc2.action);
}
}

function product_2_sums()
{
with(document.forms.calc2)
{
if(product_2_quantity.value<3)
{
product_2_total_s.value=((1*u_price.value)*(product_2_quantity.value))-((1*u_price.value)*(product_2_quantity.value)*(discount_rate1));
product_2_discount.value=((1*u_price.value)*(product_2_quantity.value))-(product_2_total_s.value);
}

if((product_2_quantity.value>=3)&&(product_2_quantity.value<=5))
{
product_2_total_s.value=((1*u_price.value)*(product_2_quantity.value))-((1*u_price.value)*(product_2_quantity.value)*(discount_rate2));
product_2_discount.value=-(((1*u_price.value)*(product_2_quantity.value))-(product_2_total_s.value));
}

if((product_2_quantity.value>5)&&(product_2_quantity.value<=8))
{
product_2_total_s.value=((1*u_price.value)*(product_2_quantity.value))-((1*u_price.value)*(product_2_quantity.value)*(discount_rate3));
product_2_discount.value=-(((1*u_price.value)*(product_2_quantity.value))-(product_2_total_s.value));
}

if((product_2_quantity.value>8)&&(product_2_quantity.value<=10))
{
product_2_total_s.value=((1*u_price.value)*(product_2_quantity.value))-((1*u_price.value)*(product_2_quantity.value)*(discount_rate4));
product_2_discount.value=-(((1*u_price.value)*(product_2_quantity.value))-(product_2_total_s.value));
}

if((product_2_quantity.value>10)&&(product_2_quantity.value<=15))
{
product_2_total_s.value=((1*u_price.value)*(product_2_quantity.value))-((1*u_price.value)*(product_2_quantity.value)*(discount_rate5));
product_2_discount.value=-(((1*u_price.value)*(product_2_quantity.value))-(product_2_total_s.value));
}

if((product_2_quantity.value>15)&&(product_2_quantity.value<=20))
{
product_2_total_s.value=((1*u_price.value)*(product_2_quantity.value))-((1*u_price.value)*(product_2_quantity.value)*(discount_rate6));
product_2_discount.value=-(((1*u_price.value)*(product_2_quantity.value))-(product_2_total_s.value));
}

if((product_2_quantity.value>20)&&(product_2_quantity.value<=100))
{
product_2_total_s.value=((1*u_price.value)*(product_2_quantity.value))-((1*u_price.value)*(product_2_quantity.value)*(discount_rate7));
product_2_discount.value=-(((1*u_price.value)*(product_2_quantity.value))-(product_2_total_s.value));
}

if((product_2_quantity.value>100)&&(product_2_quantity.value<=500))
{
product_2_total_s.value=((1*u_price.value)*(product_2_quantity.value))-((1*u_price.value)*(product_2_quantity.value)*(discount_rate8));
product_2_discount.value=-(((1*u_price.value)*(product_2_quantity.value))-(product_2_total_s.value));
}

if((product_2_quantity.value>500)&&(product_2_quantity.value<=1000))
{
product_2_total_s.value=((1*u_price.value)*(product_2_quantity.value))-((1*u_price.value)*(product_2_quantity.value)*(discount_rate9));
product_2_discount.value=-(((1*u_price.value)*(product_2_quantity.value))-(product_2_total_s.value));
}

if(product_2_quantity.value>1000)
{
product_2_total_s.value=((1*u_price.value)*(product_2_quantity.value))-((1*u_price.value)*(product_2_quantity.value)*(discount_rate10));
product_2_discount.value=-(((1*u_price.value)*(product_2_quantity.value))-(product_2_total_s.value));
}
//end all ifs
}
}

function product_2_rate()
{
with(document.forms.calc2)
{
if((isNaN(product_2_quantity.value))||(product_2_quantity.value<1)){alert("Please enter figure for quantity (Number of users)"); product_2_quantity.focus(); return;}
product_2_discount.value=0;
if(pricecurrency.options[0].selected){u_price.value=parseFloat(69.99); currcy.value="USD";}
if(pricecurrency.options[1].selected){u_price.value=parseFloat(53.64);currcy.value="EUR";}
if(pricecurrency.options[2].selected){u_price.value=parseFloat(48.73);currcy.value="GBP";}
if(pricecurrency.options[3].selected){u_price.value=parseFloat(75.17);currcy.value="CAD";}
if(pricecurrency.options[4].selected){u_price.value=parseFloat(80.42);currcy.value="AUD";}
if(pricecurrency.options[5].selected){u_price.value=parseFloat(6682.30);currcy.value="JPY";}
if(product_2_quantity.value>0){product_2_sums();} else {product_2_total_s.value=0; product_2_discount.value=0;}
}
}

//end prd2
//azorganizerprd3 begin
function selItem3_1()
{
with(document.forms.calc3)
{
if(item3_1.checked=true){proditem3='&item='+item3_1.value; item3_2.checked=false;}
}
}

function selItem3_2()
{
with(document.forms.calc3)
{
if(item3_2.checked=true){proditem3='&item='+item3_2.value; item3_1.checked=false;}  
}
}

function buyItem3Submit()
{
with(document.forms.calc3)
{
if(proditem3==""){proditem3='&item='+item3_1.value;}
prodquantity='&quantity='+product_3_quantity.value;
prodcurrency='&currency='+currcy.value;
calc3.action='http://www.regnow.com/softsell/nph-softsell.cgi?ss_short_order=true&action=add_to_cart'+proditem3+prodquantity+prodcurrency+prodlocale+reffid;
//alert(calc3.action);
}
}

function product_3_sums()
{
with(document.forms.calc3)
{
if(product_3_quantity.value<3)
{
product_3_total_s.value=((1*u_price.value)*(product_3_quantity.value))-((1*u_price.value)*(product_3_quantity.value)*(discount_rate1));
product_3_discount.value=((1*u_price.value)*(product_3_quantity.value))-(product_3_total_s.value);
}

if((product_3_quantity.value>=3)&&(product_3_quantity.value<=5))
{
product_3_total_s.value=((1*u_price.value)*(product_3_quantity.value))-((1*u_price.value)*(product_3_quantity.value)*(discount_rate2));
product_3_discount.value=-(((1*u_price.value)*(product_3_quantity.value))-(product_3_total_s.value));
}

if((product_3_quantity.value>5)&&(product_3_quantity.value<=8))
{
product_3_total_s.value=((1*u_price.value)*(product_3_quantity.value))-((1*u_price.value)*(product_3_quantity.value)*(discount_rate3));
product_3_discount.value=-(((1*u_price.value)*(product_3_quantity.value))-(product_3_total_s.value));
}

if((product_3_quantity.value>8)&&(product_3_quantity.value<=10))
{
product_3_total_s.value=((1*u_price.value)*(product_3_quantity.value))-((1*u_price.value)*(product_3_quantity.value)*(discount_rate4));
product_3_discount.value=-(((1*u_price.value)*(product_3_quantity.value))-(product_3_total_s.value));
}

if((product_3_quantity.value>10)&&(product_3_quantity.value<=15))
{
product_3_total_s.value=((1*u_price.value)*(product_3_quantity.value))-((1*u_price.value)*(product_3_quantity.value)*(discount_rate5));
product_3_discount.value=-(((1*u_price.value)*(product_3_quantity.value))-(product_3_total_s.value));
}

if((product_3_quantity.value>15)&&(product_3_quantity.value<=20))
{
product_3_total_s.value=((1*u_price.value)*(product_3_quantity.value))-((1*u_price.value)*(product_3_quantity.value)*(discount_rate6));
product_3_discount.value=-(((1*u_price.value)*(product_3_quantity.value))-(product_3_total_s.value));
}

if((product_3_quantity.value>20)&&(product_3_quantity.value<=100))
{
product_3_total_s.value=((1*u_price.value)*(product_3_quantity.value))-((1*u_price.value)*(product_3_quantity.value)*(discount_rate7));
product_3_discount.value=-(((1*u_price.value)*(product_3_quantity.value))-(product_3_total_s.value));
}

if((product_3_quantity.value>100)&&(product_3_quantity.value<=500))
{
product_3_total_s.value=((1*u_price.value)*(product_3_quantity.value))-((1*u_price.value)*(product_3_quantity.value)*(discount_rate8));
product_3_discount.value=-(((1*u_price.value)*(product_3_quantity.value))-(product_3_total_s.value));
}

if((product_3_quantity.value>500)&&(product_3_quantity.value<=1000))
{
product_3_total_s.value=((1*u_price.value)*(product_3_quantity.value))-((1*u_price.value)*(product_3_quantity.value)*(discount_rate9));
product_3_discount.value=-(((1*u_price.value)*(product_3_quantity.value))-(product_3_total_s.value));
}

if(product_3_quantity.value>1000)
{
product_3_total_s.value=((1*u_price.value)*(product_3_quantity.value))-((1*u_price.value)*(product_3_quantity.value)*(discount_rate10));
product_3_discount.value=-(((1*u_price.value)*(product_3_quantity.value))-(product_3_total_s.value));
}
//end all ifs
}
}

function product_3_rate()
{
with(document.forms.calc3)
{
if((isNaN(product_3_quantity.value))||(product_3_quantity.value<1)){alert("Please enter figure for quantity (Number of users)"); product_3_quantity.focus(); return;}
product_3_discount.value=0;
if(pricecurrency.options[0].selected){u_price.value=parseFloat(99.99); currcy.value="USD";}
if(pricecurrency.options[1].selected){u_price.value=parseFloat(76.63);currcy.value="EUR";}
if(pricecurrency.options[2].selected){u_price.value=parseFloat(69.61);currcy.value="GBP";}
if(pricecurrency.options[3].selected){u_price.value=parseFloat(107.39);currcy.value="CAD";}
if(pricecurrency.options[4].selected){u_price.value=parseFloat(114.89);currcy.value="AUD";}
if(pricecurrency.options[5].selected){u_price.value=parseFloat(9546.55);currcy.value="JPY";}
if(product_3_quantity.value>0){product_3_sums();} else {product_3_total_s.value=0; product_3_discount.value=0;}
}
}
//end prd3
//begin FormZillaprd4 

function buyItem4Submit()
{
with(document.forms.calc4)
{
proditem='&item=22452-1';
prodquantity='&quantity='+product_4_quantity.value;
prodcurrency='&currency='+currcy.value;
calc3.action='http://www.regnow.com/softsell/nph-softsell.cgi?ss_short_order=true&action=add_to_cart'+proditem+prodquantity+prodcurrency+prodlocale+reffid;
//alert(calc4.action);
}
}
function product_4_sums()
{
with(document.forms.calc4)
{
if(product_4_quantity.value<3)
{
product_4_total_s.value=((1*u_price.value)*(product_4_quantity.value))-((1*u_price.value)*(product_4_quantity.value)*(discount_rate1));
product_4_discount.value=((1*u_price.value)*(product_4_quantity.value))-(product_4_total_s.value);
}

if((product_4_quantity.value>=3)&&(product_4_quantity.value<=5))
{
product_4_total_s.value=((1*u_price.value)*(product_4_quantity.value))-((1*u_price.value)*(product_4_quantity.value)*(discount_rate2));
product_4_discount.value=-(((1*u_price.value)*(product_4_quantity.value))-(product_4_total_s.value));
}

if((product_4_quantity.value>5)&&(product_4_quantity.value<=8))
{
product_4_total_s.value=((1*u_price.value)*(product_4_quantity.value))-((1*u_price.value)*(product_4_quantity.value)*(discount_rate3));
product_4_discount.value=-(((1*u_price.value)*(product_4_quantity.value))-(product_4_total_s.value));
}

if((product_4_quantity.value>8)&&(product_4_quantity.value<=10))
{
product_4_total_s.value=((1*u_price.value)*(product_4_quantity.value))-((1*u_price.value)*(product_4_quantity.value)*(discount_rate4));
product_4_discount.value=-(((1*u_price.value)*(product_4_quantity.value))-(product_4_total_s.value));
}

if((product_4_quantity.value>10)&&(product_4_quantity.value<=15))
{
product_4_total_s.value=((1*u_price.value)*(product_4_quantity.value))-((1*u_price.value)*(product_4_quantity.value)*(discount_rate5));
product_4_discount.value=-(((1*u_price.value)*(product_4_quantity.value))-(product_4_total_s.value));
}

if((product_4_quantity.value>15)&&(product_4_quantity.value<=20))
{
product_4_total_s.value=((1*u_price.value)*(product_4_quantity.value))-((1*u_price.value)*(product_4_quantity.value)*(discount_rate6));
product_4_discount.value=-(((1*u_price.value)*(product_4_quantity.value))-(product_4_total_s.value));
}

if((product_4_quantity.value>20)&&(product_4_quantity.value<=100))
{
product_4_total_s.value=((1*u_price.value)*(product_4_quantity.value))-((1*u_price.value)*(product_4_quantity.value)*(discount_rate7));
product_4_discount.value=-(((1*u_price.value)*(product_4_quantity.value))-(product_4_total_s.value));
}

if((product_4_quantity.value>100)&&(product_4_quantity.value<=500))
{
product_4_total_s.value=((1*u_price.value)*(product_4_quantity.value))-((1*u_price.value)*(product_4_quantity.value)*(discount_rate8));
product_4_discount.value=-(((1*u_price.value)*(product_4_quantity.value))-(product_4_total_s.value));
}

if((product_4_quantity.value>500)&&(product_4_quantity.value<=1000))
{
product_4_total_s.value=((1*u_price.value)*(product_4_quantity.value))-((1*u_price.value)*(product_4_quantity.value)*(discount_rate9));
product_4_discount.value=-(((1*u_price.value)*(product_4_quantity.value))-(product_4_total_s.value));
}

if(product_4_quantity.value>1000)
{
product_4_total_s.value=((1*u_price.value)*(product_4_quantity.value))-((1*u_price.value)*(product_4_quantity.value)*(discount_rate10));
product_4_discount.value=-(((1*u_price.value)*(product_4_quantity.value))-(product_4_total_s.value));
}
//end all ifs
}
}

function product_4_rate()
{
with(document.forms.calc4)
{
if((isNaN(product_4_quantity.value))||(product_4_quantity.value<1)){alert("Please enter figure for quantity (Number of users)"); product_4_quantity.focus(); return;}
product_4_discount.value=0;
if(pricecurrency.options[0].selected){u_price.value=parseFloat(19.99); currcy.value="USD";}
if(pricecurrency.options[1].selected){u_price.value=parseFloat(15.32);currcy.value="EUR";}
if(pricecurrency.options[2].selected){u_price.value=parseFloat(13.92);currcy.value="GBP";}
if(pricecurrency.options[3].selected){u_price.value=parseFloat(21.47);currcy.value="CAD";}
if(pricecurrency.options[4].selected){u_price.value=parseFloat(22.97);currcy.value="AUD";}
if(pricecurrency.options[5].selected){u_price.value=parseFloat(1908.55);currcy.value="JPY";}
if(product_4_quantity.value>0){product_4_sums();} else {product_4_total_s.value=0; product_4_discount.value=0;}
}
}
//end prd4
//jdbaprd5 begin
function buyItem5Submit()
{
with(document.forms.calc5)
{
proditem='&item=22452-4';
prodquantity='&quantity='+product_5_quantity.value;
prodcurrency='&currency='+currcy.value;
calc5.action='http://www.regnow.com/softsell/nph-softsell.cgi?ss_short_order=true&action=add_to_cart'+proditem+prodquantity+prodcurrency+prodlocale+reffid;
//alert(calc5.action);
}
}
function product_5_sums()
{
with(document.forms.calc5)
{
if(product_5_quantity.value<3)
{
product_5_total_s.value=((1*u_price.value)*(product_5_quantity.value))-((1*u_price.value)*(product_5_quantity.value)*(discount_rate1));
product_5_discount.value=((1*u_price.value)*(product_5_quantity.value))-(product_5_total_s.value);
}

if((product_5_quantity.value>=3)&&(product_5_quantity.value<=5))
{
product_5_total_s.value=((1*u_price.value)*(product_5_quantity.value))-((1*u_price.value)*(product_5_quantity.value)*(discount_rate2));
product_5_discount.value=-(((1*u_price.value)*(product_5_quantity.value))-(product_5_total_s.value));
}

if((product_5_quantity.value>5)&&(product_5_quantity.value<=8))
{
product_5_total_s.value=((1*u_price.value)*(product_5_quantity.value))-((1*u_price.value)*(product_5_quantity.value)*(discount_rate3));
product_5_discount.value=-(((1*u_price.value)*(product_5_quantity.value))-(product_5_total_s.value));
}

if((product_5_quantity.value>8)&&(product_5_quantity.value<=10))
{
product_5_total_s.value=((1*u_price.value)*(product_5_quantity.value))-((1*u_price.value)*(product_5_quantity.value)*(discount_rate4));
product_5_discount.value=-(((1*u_price.value)*(product_5_quantity.value))-(product_5_total_s.value));
}

if((product_5_quantity.value>10)&&(product_5_quantity.value<=15))
{
product_5_total_s.value=((1*u_price.value)*(product_5_quantity.value))-((1*u_price.value)*(product_5_quantity.value)*(discount_rate5));
product_5_discount.value=-(((1*u_price.value)*(product_5_quantity.value))-(product_5_total_s.value));
}

if((product_5_quantity.value>15)&&(product_5_quantity.value<=20))
{
product_5_total_s.value=((1*u_price.value)*(product_5_quantity.value))-((1*u_price.value)*(product_5_quantity.value)*(discount_rate6));
product_5_discount.value=-(((1*u_price.value)*(product_5_quantity.value))-(product_5_total_s.value));
}

if((product_5_quantity.value>20)&&(product_5_quantity.value<=100))
{
product_5_total_s.value=((1*u_price.value)*(product_5_quantity.value))-((1*u_price.value)*(product_5_quantity.value)*(discount_rate7));
product_5_discount.value=-(((1*u_price.value)*(product_5_quantity.value))-(product_5_total_s.value));
}

if((product_5_quantity.value>100)&&(product_5_quantity.value<=500))
{
product_5_total_s.value=((1*u_price.value)*(product_5_quantity.value))-((1*u_price.value)*(product_5_quantity.value)*(discount_rate8));
product_5_discount.value=-(((1*u_price.value)*(product_5_quantity.value))-(product_5_total_s.value));
}

if((product_5_quantity.value>500)&&(product_5_quantity.value<=1000))
{
product_5_total_s.value=((1*u_price.value)*(product_5_quantity.value))-((1*u_price.value)*(product_5_quantity.value)*(discount_rate9));
product_5_discount.value=-(((1*u_price.value)*(product_5_quantity.value))-(product_5_total_s.value));
}

if(product_5_quantity.value>1000)
{
product_5_total_s.value=((1*u_price.value)*(product_5_quantity.value))-((1*u_price.value)*(product_5_quantity.value)*(discount_rate10));
product_5_discount.value=-(((1*u_price.value)*(product_5_quantity.value))-(product_5_total_s.value));
}
//end all ifs
}
}

function product_5_rate()
{
with(document.forms.calc5)
{
if((isNaN(product_5_quantity.value))||(product_5_quantity.value<1)){alert("Please enter figure for quantity (Number of servers)"); product_5_quantity.focus(); return;}
product_5_discount.value=0;
if(pricecurrency.options[0].selected){u_price.value=parseFloat(99.99); currcy.value="USD";}
if(pricecurrency.options[1].selected){u_price.value=parseFloat(76.63);currcy.value="EUR";}
if(pricecurrency.options[2].selected){u_price.value=parseFloat(69.61);currcy.value="GBP";}
if(pricecurrency.options[3].selected){u_price.value=parseFloat(107.39);currcy.value="CAD";}
if(pricecurrency.options[4].selected){u_price.value=parseFloat(114.89);currcy.value="AUD";}
if(pricecurrency.options[5].selected){u_price.value=parseFloat(9546.55);currcy.value="JPY";}
if(product_5_quantity.value>0){product_5_sums();} else {product_5_total_s.value=0; product_5_discount.value=0;}
}
}


