function DisplayOrder(Ofm,currtype,sphr,cylr,axisr,addr,intr,sphl,cyll,axisl,addl,intl,prismr,prisml,pd)
	{
	if (currtype == "USD") {var header = "\n$_Subtot\t$_Each\tQty\tStyle\tType\tColr\tTint";}
	else if (currtype == "EUR") {var header = "\n€_Subtot\t€_Each\tQty\tStyle\tType\tColr\tTint";}
	else if (currtype == "CAD") {var header = "\nC$subtot\tC$each\tQty\tStyle\tType\tColr\tTint";}
	else if (currtype == "AUD") {var header = "\nA$subtot\tA$each\tQty\tStyle\tType\tColr\tTint";}
	else if (currtype == "DKK") {var header = "\nDkSubtot\tDkEach\tQty\tStyle\tType\tColr\tTint";}
	else if (currtype == "NOK") {var header = "\nNkSubtot\tNkEach\tQty\tStyle\tType\tColr\tTint";}
	else  {var header = "\n£_Subtot\t£_Each\tQty\tStyle\tType\tColr\tTint";}

	alert(
		"\n                                         ORDER SUMMARY"
		+"\n"
		+"\nPRESCRIPTION:"
		+"\nR: Sph="+sphr+", Cyl="+cylr+", Axis="+axisr+", NearAdd="+addr+", IntAdd="+intr
		+"\nL: Sph="+sphl+", Cyl="+cyll+", Axis="+axisl+", NearAdd="+addl+", IntAdd="+intl
		+"\nRight prism: "+prismr
		+"\nLeft prism:  "+prisml    
		+"\nPD(mm)= "+pd
		+"\n"
		+"\n"
		+header
		+"\n-------------------------------------------------------------------------"
		+nl1+M_i1totprice+tab1+M_i1price+tab1+M_i1totqty+tab1+M_i1style+tab1+M_i1type+tab1+M_i1colr+tab1+M_i1tint+M_i1tintlev
		+nl2+M_i2totprice+tab2+M_i2price+tab2+M_i2totqty+tab2+M_i2style+tab2+M_i2type+tab2+M_i2colr+tab2+M_i2tint+M_i2tintlev
		+nl3+M_i3totprice+tab3+M_i3price+tab3+M_i3totqty+tab3+M_i3style+tab3+M_i3type+tab3+M_i3colr+tab3+M_i3tint+M_i3tintlev
		+nl4+M_i4totprice+tab4+M_i4price+tab4+M_i4totqty+tab4+M_i4style+tab4+M_i4type+tab4+M_i4colr+tab4+M_i4tint+M_i4tintlev
		+nl5+M_i5totprice+tab5+M_i5price+tab5+M_i5totqty+tab5+M_i5style+tab5+M_i5type+tab5+M_i5colr+tab5+M_i5tint+M_i5tintlev
		+nl6+M_i6totprice+tab6+M_i6price+tab6+M_i6totqty+tab6+M_i6style+tab6+M_i6type+tab6+M_i6colr+tab6+M_i6tint+M_i6tintlev
		+"\n-------------------------------------------------------------------------"
		+"\n"
		+"\nGBP:  "+M_subtotcostpnd+"  -  "+M_totdiscntpnd+" Discount  + "+M_ppuk+" Delivery  =  "+M_totcostpnd
		+"\nEUR:  "+M_subtotcosteuro+"  -  "+M_totdiscnteuro+" Discount  + "+M_ppeurope+" Shipping  =  "+M_totcosteuro		
		+"\nUSD:  "+M_subtotcostusd+"  -  "+M_totdiscntusd+" Discount  + "+M_ppusa+" Shipping  =  "+M_totcostusd
		+"\nDKK:  "+M_subtotcostdkk+"  -  "+M_totdiscntdkk+" Discount  + "+M_ppden+" Shipping  = "+M_totcostdkk
		+"\nNOK:  "+M_subtotcostnok+"  -  "+M_totdiscntnok+" Discount  + "+M_ppnor+" Shipping  = "+M_totcostnok
		+"\nCAD:  "+M_subtotcostcad+"  -  "+M_totdiscntcad+" Discount  + "+M_ppcan+" Shipping  = "+M_totcostcad
		+"\nAUD:  "+M_subtotcostaud+"  -  "+M_totdiscntaud+" Discount  + "+M_ppaus+" Shipping  = "+M_totcostaud
		) //end alert()
	}



///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function OrderProc(Ofm)
	{
	alert(	"\n"+
			"\n                               ORDERING PROCEDURE"+
			"\n"+
			"\n1. Enter your details in the 'Customer Details' table below."+ 
			"\n2. Click on [Submit Order] button in the 'Customer Details' table."+
			"\n3. We will need a scanned and emailed copy of your prescription."+
			"\n4. If you want lenses installed in your own frames, you will need"+
			"\n    to send your frames to:"+
			"\n"+	
			"\n    OnLine Reading Glasses, P. O. Box 88,"+ 
			"\n    Darlington, County Durham DL1 2WZ, England."+
			"\n"+ 
			"\n5. Your frames and prescription are sent to our technician."+ 
			"\n6. The finished glasses are returned to us, usually within 10 days."+
			"\n7. We send you an email that links to a form on a secure webpage."+
			"\n8. You complete the form to securely pay by credit card."+
			"\n9. Once payment is received, your glasses are sent to you."
		)
 	} //end function OrderProc(Ofm)



///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function CalcTotals(Ofm,currtype)
	{
	//convert subtotal charge to euros and dollars
	M_subtotcosteuro = M_subtotcostpnd * euro2pnd
	M_subtotcostusd = M_subtotcostpnd * usd2pnd
	M_subtotcostcad = M_subtotcostpnd * cad2pnd
	M_subtotcostaud = M_subtotcostpnd * aud2pnd
	M_subtotcostdkk = M_subtotcostpnd * dkk2pnd
	M_subtotcostnok = M_subtotcostpnd * nok2pnd

	//add in postage and packing
	M_totcostpnd = (M_subtotcostpnd - M_totdiscntpnd + M_ppuk)
	M_totcosteuro = (M_subtotcosteuro - M_totdiscnteuro + M_ppeurope)
	M_totcostusd = (M_subtotcostusd - M_totdiscntusd + M_ppusa)
	M_totcostcad = (M_subtotcostcad - M_totdiscntcad + M_ppcan)
	M_totcostaud = (M_subtotcostaud - M_totdiscntaud + M_ppaus)
	M_totcostdkk = (M_subtotcostdkk - M_totdiscntdkk + M_ppden)
	M_totcostnok = (M_subtotcostnok - M_totdiscntnok + M_ppnor)

	if (!(M_ctotqty == "")) {M_itemcnt = parseInt(M_itemcnt) + parseInt(M_ctotqty);}
	}




///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function RoundTotals(Ofm)
	{
	//round postage and packing
	M_ppeurope =  (((Math.round(M_ppeurope * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_ppusa =  (((Math.round(M_ppusa * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_ppaus =  (((Math.round(M_ppaus * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_ppcan =  (((Math.round(M_ppcan * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_ppden =  (((Math.round(M_ppden * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_ppnor =  (((Math.round(M_ppnor * Math.pow(10,2))) / (Math.pow(10,2))) - 0);

	//round discount
	M_totdiscntpnd =  (((Math.round(M_totdiscntpnd * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_totdiscnteuro =  (((Math.round(M_totdiscnteuro * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_totdiscntusd =  (((Math.round(M_totdiscntusd * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_totdiscntcad =  (((Math.round(M_totdiscntcad * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_totdiscntaud =  (((Math.round(M_totdiscntaud * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_totdiscntdkk =  (((Math.round(M_totdiscntdkk * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_totdiscntnok =  (((Math.round(M_totdiscntnok * Math.pow(10,2))) / (Math.pow(10,2))) - 0);

	//round subtotal charge
	M_subtotcostpnd =  (((Math.round(M_subtotcostpnd * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_subtotcosteuro = (((Math.round(M_subtotcosteuro * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_subtotcostusd = (((Math.round(M_subtotcostusd * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_subtotcostcad = (((Math.round(M_subtotcostcad * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_subtotcostaud = (((Math.round(M_subtotcostaud * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_subtotcostdkk = (((Math.round(M_subtotcostdkk * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_subtotcostnok = (((Math.round(M_subtotcostnok * Math.pow(10,2))) / (Math.pow(10,2))) - 0);

	//round charge including postage and packing
	M_totcostpnd = (((Math.round(M_totcostpnd * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_totcosteuro = (((Math.round(M_totcosteuro * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_totcostusd = (((Math.round(M_totcostusd * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_totcostcad = (((Math.round(M_totcostcad * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_totcostaud = (((Math.round(M_totcostaud * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_totcostdkk = (((Math.round(M_totcostdkk * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	M_totcostnok = (((Math.round(M_totcostnok * Math.pow(10,2))) / (Math.pow(10,2))) - 0);
	}



///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function CalcDiscount(Ofm)
	{
	// BubbleSort
	for (var k=0; k<(i-1); k++)
		{
     		for (var j=k+1; j<i; j++)
			{
           		if (pricearray[j] < pricearray[k]) 
				{
				var holder = pricearray[k]; 
				pricearray[k] = pricearray[j]; 
				pricearray[j] = holder;
				}	
			}
		}

		var accum=0
		
		//determines if total num items bought is odd-even
		if (i%2 == 0)
			{for (var x=0; x < (i)/2; x++) {accum+=pricearray[x]}}
		else
			{for (var x=0; x < (i)/2-1; x++) {accum+=pricearray[x]}}

		//pricearray[] contains prices that qualify for discnt
		M_totdiscntpnd=accum * discntfactor
		M_totdiscnteuro=	M_totdiscntpnd * euro2pnd
		M_totdiscntusd = M_totdiscntpnd * usd2pnd
		M_totdiscntcad = M_totdiscntpnd * cad2pnd
		M_totdiscntaud = M_totdiscntpnd * aud2pnd
		M_totdiscntdkk = M_totdiscntpnd * dkk2pnd
		M_totdiscntnok = M_totdiscntpnd * nok2pnd

	}// end function CalcDiscount(Ofm)



///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function Load(Ofm,typ,styl,dptr,totqty,price,colr,currtype,tint,tintlev)
	{
	pnd="£";
	totprice = (price*totqty)
	if ( select == 1 ) 
		{
		nl1="\n"; tab1="\t";
		M_i1type=typ,M_i1style=styl,M_i1dptr=dptr,M_i1totqty=totqty,M_i1price=price,M_i1totprice=totprice,M_i1colr=colr,M_i1tint=tint,
		M_i1tintlev=tintlev
 		if (currtype == "USD") {M_i1price=rnd(M_i1price*usd2pnd,2);M_i1totprice=rnd(M_i1totprice*usd2pnd,2);} 
		if (currtype == "EUR") {M_i1price=rnd(M_i1price*euro2pnd,2);M_i1totprice=rnd(M_i1totprice*euro2pnd,2);}
		if (currtype == "CAD") {M_i1price=rnd(M_i1price*cad2pnd,2);M_i1totprice=rnd(M_i1totprice*cad2pnd,2);}  
		if (currtype == "AUD") {M_i1price=rnd(M_i1price*aud2pnd,2);M_i1totprice=rnd(M_i1totprice*aud2pnd,2);}  
		if (currtype == "DKK") {M_i1price=rnd(M_i1price*dkk2pnd,2);M_i1totprice=rnd(M_i1totprice*dkk2pnd,2);}  
		if (currtype == "NOK") {M_i1price=rnd(M_i1price*nok2pnd,2);M_i1totprice=rnd(M_i1totprice*nok2pnd,2);}  
		}
	if ( select == 2 ) 
		{
		nl2="\n"; tab2="\t";
		M_i2type=typ,M_i2style=styl,M_i2dptr=dptr,M_i2totqty=totqty,M_i2price=price,M_i2totprice=totprice,M_i2colr=colr,M_i2tint=tint,
		M_i2tintlev=tintlev
		if (currtype == "USD") {M_i2price=rnd(M_i2price*usd2pnd,2);M_i2totprice=rnd(M_i2totprice*usd2pnd,2);}  
		if (currtype == "EUR") {M_i2price=rnd(M_i2price*euro2pnd,2);M_i2totprice=rnd(M_i2totprice*euro2pnd,2);}
		if (currtype == "CAD") {M_i2price=rnd(M_i2price*cad2pnd,2);M_i2totprice=rnd(M_i2totprice*cad2pnd,2);}  
		if (currtype == "AUD") {M_i2price=rnd(M_i2price*aud2pnd,2);M_i2totprice=rnd(M_i2totprice*aud2pnd,2);}  
		if (currtype == "DKK") {M_i2price=rnd(M_i2price*dkk2pnd,2);M_i2totprice=rnd(M_i2totprice*dkk2pnd,2);}  
		if (currtype == "NOK") {M_i2price=rnd(M_i2price*nok2pnd,2);M_i2totprice=rnd(M_i2totprice*nok2pnd,2);}  
		}
	if ( select == 3 ) 
		{
		nl3="\n"; tab3="\t";
		M_i3type=typ,M_i3style=styl,M_i3dptr=dptr,M_i3totqty=totqty,M_i3price=price,M_i3totprice=totprice,M_i3colr=colr,M_i3tint=tint,
		M_i3tintlev=tintlev
		if (currtype == "USD") {M_i3price=rnd(M_i3price*usd2pnd,2);M_i3totprice=rnd(M_i3totprice*usd2pnd,2);}  
		if (currtype == "EUR") {M_i3price=rnd(M_i3price*euro2pnd,2);M_i3totprice=rnd(M_i3totprice*euro2pnd,2);}
		if (currtype == "CAD") {M_i3price=rnd(M_i3price*cad2pnd,2);M_i3totprice=rnd(M_i3totprice*cad2pnd,2);}  
		if (currtype == "AUD") {M_i3price=rnd(M_i3price*aud2pnd,2);M_i3totprice=rnd(M_i3totprice*aud2pnd,2);}  
		if (currtype == "DKK") {M_i3price=rnd(M_i3price*dkk2pnd,2);M_i3totprice=rnd(M_i3totprice*dkk2pnd,2);}  
		if (currtype == "NOK") {M_i3price=rnd(M_i3price*nok2pnd,2);M_i3totprice=rnd(M_i3totprice*nok2pnd,2);}  
		}
	if ( select == 4 ) 
		{
		nl4="\n"; tab4="\t";
		M_i4type=typ,M_i4style=styl,M_i4dptr=dptr,M_i4totqty=totqty,M_i4price=price,M_i4totprice=totprice,M_i4colr=colr,M_i4tint=tint,
		M_i4tintlev=tintlev
		if (currtype == "USD") {M_i4price=rnd(M_i4price*usd2pnd,2);M_i4totprice=rnd(M_i4totprice*usd2pnd,2);}  
		if (currtype == "EUR") {M_i4price=rnd(M_i4price*euro2pnd,2);M_i4totprice=rnd(M_i4totprice*euro2pnd,2);}
		if (currtype == "CAD") {M_i4price=rnd(M_i4price*cad2pnd,2);M_i4totprice=rnd(M_i4totprice*cad2pnd,2);}  
		if (currtype == "AUD") {M_i4price=rnd(M_i4price*aud2pnd,2);M_i4totprice=rnd(M_i4totprice*aud2pnd,2);}  
		if (currtype == "DKK") {M_i4price=rnd(M_i4price*dkk2pnd,2);M_i4totprice=rnd(M_i4totprice*dkk2pnd,2);}  
		if (currtype == "NOK") {M_i4price=rnd(M_i4price*nok2pnd,2);M_i4totprice=rnd(M_i4totprice*nok2pnd,2);}  
		}
	if ( select == 5 ) 
		{
		nl5="\n"; tab5="\t";
		M_i5type=typ,M_i5style=styl,M_i5dptr=dptr,M_i5totqty=totqty,M_i5price=price,M_i5totprice=totprice,M_i5colr=colr,M_i5tint=tint,
		M_i5tintlev=tintlev
		if (currtype == "USD") {M_i5price=rnd(M_i5price*usd2pnd,2);M_i5totprice=rnd(M_i5totprice*usd2pnd,2);}  
		if (currtype == "EUR") {M_i5price=rnd(M_i5price*euro2pnd,2);M_i5totprice=rnd(M_i5totprice*euro2pnd,2);}
		if (currtype == "CAD") {M_i5price=rnd(M_i5price*cad2pnd,2);M_i5totprice=rnd(M_i5totprice*cad2pnd,2);}  
		if (currtype == "AUD") {M_i5price=rnd(M_i5price*aud2pnd,2);M_i5totprice=rnd(M_i5totprice*aud2pnd,2);}  
		if (currtype == "DKK") {M_i5price=rnd(M_i5price*dkk2pnd,2);M_i5totprice=rnd(M_i5totprice*dkk2pnd,2);}  
		if (currtype == "NOK") {M_i5price=rnd(M_i5price*nok2pnd,2);M_i5totprice=rnd(M_i5totprice*nok2pnd,2);}  
		}
	if ( select == 6 ) 
		{
		nl6="\n"; tab6="\t";
		M_i6type=typ,M_i6style=styl,M_i6dptr=dptr,M_i6totqty=totqty,M_i6price=price,M_i6totprice=totprice,M_i6colr=colr,M_i6tint=tint,
		M_i6tintlev=tintlev
		if (currtype == "USD") {M_i6price=rnd(M_i6price*usd2pnd,2);M_i6totprice=rnd(M_i6totprice*usd2pnd,2);}  
		if (currtype == "EUR") {M_i6price=rnd(M_i6price*euro2pnd,2);M_i6totprice=rnd(M_i6totprice*euro2pnd,2);}
		if (currtype == "CAD") {M_i6price=rnd(M_i6price*cad2pnd,2);M_i6totprice=rnd(M_i6totprice*cad2pnd,2);}  
		if (currtype == "AUD") {M_i6price=rnd(M_i6price*aud2pnd,2);M_i6totprice=rnd(M_i6totprice*aud2pnd,2);}  
		if (currtype == "DKK") {M_i6price=rnd(M_i6price*dkk2pnd,2);M_i6totprice=rnd(M_i6totprice*dkk2pnd,2);}  
		if (currtype == "NOK") {M_i6price=rnd(M_i6price*nok2pnd,2);M_i6totprice=rnd(M_i6totprice*nok2pnd,2);}  
		}
		
		M_subtotcostpnd += (totprice - 0)
		M_itemcnt += (totqty - 0)

		if (select != 7) {for (var cnt=0; cnt < totqty; cnt++) {pricearray[i]=price; i++;}}

	} //end function Load()


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function Reset(Ofm)
	{
	nl1=""; nl2=""; nl3=""; nl4=""; nl5=""; nl6=""; nl7=""; pnd=""; tab1=""; tab2=""; tab3=""; tab4=""; tab5=""; tab6=""; tab7="";
	M_i1type=""; M_i1style=""; M_i1dptr="";	M_i1totqty=""; M_i1price=""; M_i1totprice=""; M_i1colr=""; M_i1tint=""; M_i1tintlev="";
 	M_i2type=""; M_i2style=""; M_i2dptr="";	M_i2totqty=""; M_i2price=""; M_i2totprice=""; M_i2colr=""; M_i2tint=""; M_i2tintlev="";
 	M_i3type=""; M_i3style=""; M_i3dptr="";	M_i3totqty=""; M_i3price=""; M_i3totprice=""; M_i3colr=""; M_i3tint=""; M_i3tintlev="";
 	M_i4type=""; M_i4style=""; M_i4dptr="";	M_i4totqty=""; M_i4price=""; M_i4totprice=""; M_i4colr=""; M_i4tint=""; M_i4tintlev="";
 	M_i5type=""; M_i5style=""; M_i5dptr="";	M_i5totqty=""; M_i5price=""; M_i5totprice=""; M_i5colr=""; M_i5tint=""; M_i5tintlev="";
 	M_i6type=""; M_i6style=""; M_i6dptr="";	M_i6totqty=""; M_i6price=""; M_i6totprice=""; M_i6colr=""; M_i6tint=""; M_i6tintlev="";
	priceprismr=0;priceprisml=0; 
	M_ctype="";M_cstyle="";M_cnull="";M_ctotqty="";M_cprice="";M_ctotprice="";M_ccolr=""; 
	M_totdiscntpnd=0; M_totdiscnteuro=0;M_totdiscntusd=0;M_subtotcostpnd=0;M_itemcnt=0;
	M_totcostpnd =0; M_subtotcosteuro = 0; M_totcosteuro = 0;
	M_subtotcostusd = 0; M_totcostusd = 0; M_itemcnt = 0; i=0; totprice = 0
	for (var cnt=0; cnt < 10; cnt++) {pricearray[i]=0; i++}

 	} //end function Reset(Ofm)


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function ValidatePersonalData(Ofm)
	{
	if ( Ofm.M_title.value=="") {alert("PLEASE ENTER YOUR TITLE");Ofm.M_title.focus();return false;}
	if ( Ofm.M_lastname.value=="") {alert("PLEASE ENTER YOUR LAST NAME");Ofm.M_lastname.focus();return false;}
	if ( Ofm.address.value=="") {alert("PLEASE ENTER YOUR ADDRESS");Ofm.address.focus();return false;}
	if ( Ofm.email.value=="") {alert("PLEASE ENTER YOUR EMAIL ADDRESS");Ofm.email.focus();return false;}
	if ( Ofm.postcode.value=="") {alert("PLEASE ENTER YOUR POST/ZIP CODE");Ofm.postcode.focus();return false;}
	if ( Ofm.country.value=="") {alert("PLEASE ENTER YOUR COUNTRY");Ofm.country.focus();return false;}
	var paymentoption = -1
      for (var optioncnt=0; optioncnt < Ofm.paymentmethod.length; optioncnt++)
      {if (Ofm.paymentmethod[optioncnt].checked) {paymentoption=optioncnt}}
      if (paymentoption == -1) {alert("PLEASE ENTER A PAYMENT METHOD");return false;}
	if ( Ofm.currency.value=="") {alert("PLEASE ENTER YOUR PAYMENT CURRENCY");Ofm.currency.focus();return false;}
	}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function AssociateParamsWithForm(Ofm)
	{
	///////////////////////////// ITEM PARAMS //////////////////////
	Ofm.M_i1type.value      =M_i1type 
	Ofm.M_i1style.value     =M_i1style
	Ofm.M_i1dptr.value       =M_i1dptr
	Ofm.M_i1totqty.value    =M_i1totqty	
	Ofm.M_i1price.value     =M_i1price
	Ofm.M_i1totprice.value =M_i1totprice
	Ofm.M_i1colr.value       =M_i1colr
	Ofm.M_i1tint.value        =M_i1tint
	Ofm.M_i1tintlev.value   =M_i1tintlev
	Ofm.M_i2type.value      =M_i2type
	Ofm.M_i2style.value     =M_i2style
	Ofm.M_i2dptr.value       =M_i2dptr
	Ofm.M_i2totqty.value    =M_i2totqty  	
	Ofm.M_i2price.value     =M_i2price
	Ofm.M_i2totprice.value =M_i2totprice
	Ofm.M_i2colr.value       =M_i2colr
	Ofm.M_i2tint.value        =M_i2tint
	Ofm.M_i2tintlev.value   =M_i2tintlev
	Ofm.M_i3type.value      =M_i3type
	Ofm.M_i3style.value     =M_i3style
	Ofm.M_i3dptr.value       =M_i3dptr
	Ofm.M_i3totqty.value    =M_i3totqty  	
	Ofm.M_i3price.value     =M_i3price
	Ofm.M_i3totprice.value =M_i3totprice
	Ofm.M_i3colr.value       =M_i3colr
	Ofm.M_i3tint.value        =M_i3tint
	Ofm.M_i3tintlev.value   =M_i3tintlev
	Ofm.M_i4type.value      =M_i4type
	Ofm.M_i4style.value     =M_i4style
	Ofm.M_i4dptr.value       =M_i4dptr
	Ofm.M_i4totqty.value    =M_i4totqty  	
	Ofm.M_i4price.value     =M_i4price
	Ofm.M_i4totprice.value =M_i4totprice
	Ofm.M_i4colr.value       =M_i4colr
	Ofm.M_i4tint.value        =M_i4tint
	Ofm.M_i4tintlev.value   =M_i4tintlev
	Ofm.M_i5type.value      =M_i5type
	Ofm.M_i5style.value     =M_i5style
	Ofm.M_i5dptr.value       =M_i5dptr
	Ofm.M_i5totqty.value    =M_i5totqty  	
	Ofm.M_i5price.value     =M_i5price
	Ofm.M_i5totprice.value =M_i5totprice
	Ofm.M_i5colr.value       =M_i5colr
	Ofm.M_i5tint.value        =M_i5tint
	Ofm.M_i5tintlev.value   =M_i5tintlev
	Ofm.M_i6type.value      =M_i6type
	Ofm.M_i6style.value     =M_i6style
	Ofm.M_i6dptr.value       =M_i6dptr
	Ofm.M_i6totqty.value    =M_i6totqty  	
	Ofm.M_i6price.value     =M_i6price
	Ofm.M_i6totprice.value =M_i6totprice
	Ofm.M_i6colr.value       =M_i6colr
	Ofm.M_i6tint.value        =M_i6tint
	Ofm.M_i6tintlev.value   =M_i6tintlev

	/////////////////////////////// DELIVERY COSTS //////////////////////////////////////
	Ofm.M_ppuk.value		=M_ppuk
	Ofm.M_ppeurope.value	=M_ppeurope
	Ofm.M_ppusa.value		=M_ppusa
	Ofm.M_ppnor.value		=M_ppnor
	Ofm.M_ppcan.value		=M_ppcan
	Ofm.M_ppusa.value		=M_ppusa
	Ofm.M_ppaus.value		=M_ppaus
	/////////////////////////////// DISCOUNTS //////////////////////////////////////
	Ofm.M_totdiscntpnd.value	=M_totdiscntpnd
	Ofm.M_totdiscnteuro.value	=M_totdiscnteuro
	Ofm.M_totdiscntusd.value	=M_totdiscntusd
	Ofm.M_totdiscntcad.value	=M_totdiscntcad
	Ofm.M_totdiscntaud.value	=M_totdiscntaud
	Ofm.M_totdiscntdkk.value		=M_totdiscntdkk
	Ofm.M_totdiscntnok.value	=M_totdiscntnok
	/////////////////////////////// QTY TOTALS ////////////////////////////
	Ofm.M_itemcnt.value		=M_itemcnt
	/////////////////////////////// PRICE TOTALS //////////////////////////////////////
	Ofm.M_subtotcostpnd.value	=M_subtotcostpnd
	Ofm.M_subtotcosteuro.value	=M_subtotcosteuro
	Ofm.M_subtotcostusd.value	=M_subtotcostusd
	Ofm.M_subtotcostcad.value	=M_subtotcostcad
	Ofm.M_subtotcostaud.value	=M_subtotcostaud
	Ofm.M_subtotcostdkk.value	=M_subtotcostdkk
	Ofm.M_subtotcostnok.value	=M_subtotcostnok
	Ofm.M_totcostpnd.value		=M_totcostpnd
	Ofm.M_totcosteuro.value		=M_totcosteuro
	Ofm.M_totcostusd.value		=M_totcostusd
	Ofm.M_totcostcad.value		=M_totcostcad
	Ofm.M_totcostaud.value		=M_totcostaud
	Ofm.M_totcostdkk.value		=M_totcostdkk
	Ofm.M_totcostnok.value		=M_totcostnok
	/////////////////////////////// TRANSACTION IDENT //////////////////////////////////////
	Ofm.trans_id.value		=trans_id
	}// end function AssociateParamsWithForm(Ofm)


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function TestForInvalidQty(Ofm)
	{
	if (M_itemcnt > qtymax)
		{
		alert("\nERROR:"+
		"\nYOU HAVE SELECTED OVER "+qtymax+" ITEMS."+
		"\nIF A MISTAKE, THEN HIT RESET BUTTON."+
		"\nIF YOU REQUIRE OVER "+qtymax+" ITEMS, THEN"+
		"\nCONTACT RDGGLSS@AOL.COM.")
		return 0;
		}
	}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function rnd(n,dec){
	var num=parseFloat(n);
	num=Math.round(num*Math.pow(10, dec))/Math.pow(10, dec);
	var s=new String();
	s=""+num;
	if(dec!=0){
		if(s.charAt(s.length-2)=='.') s+="0";
		if(s.charAt(s.length-3)!='.') s+=".00";
        }
	return(s);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function AssignPriceDC(Ofm)
	{
	if (Ofm.prismr.value == "YES") priceprismr = costprismr;
	if (Ofm.prisml.value == "YES") priceprisml = costprisml;
	priceprism = priceprismr + priceprisml;


	if (Ofm.rg0tint.value != "None") {pricerg0tint = costtint;} else {pricerg0tint = 0;}
	if (Ofm.rg2tint.value != "None") {pricerg2tint = costtint;} else {pricerg2tint = 0;}
	if (Ofm.rgatint.value != "None") {pricergatint = costtint;} else {pricergatint = 0;}
	if (Ofm.rgbtint.value != "None") {pricergbtint = costtint;} else {pricergbtint = 0;}
	if (Ofm.rgctint.value != "None") {pricergctint = costtint;} else {pricergctint = 0;}
	if (Ofm.rgftint.value != "None") {pricergftint = costtint;} else {pricergftint = 0;}
	if (Ofm.rgvtint.value != "None") {pricergvtint = costtint;} else {pricergvtint = 0;}
	if (Ofm.rgwtint.value != "None") {pricergwtint = costtint;} else {pricergwtint = 0;}
	if (Ofm.rgytint.value != "None") {pricergytint = costtint;} else {pricergytint = 0;}
//	if (Ofm.frgtint.value != "None") {pricefrgtint = costtint;} else {pricefrgtint = 0;}
	if (Ofm.frmtint.value != "None") {pricefrmtint = costtint;} else {pricefrmtint = 0;}
	if (Ofm.el8tint.value != "None") {priceel8tint = costtint;} else {priceel8tint = 0;}
	if (Ofm.rg3tint.value != "None") {pricerg3tint = costtint;} else {pricerg3tint = 0;}
	if (Ofm.rg4tint.value != "None") {pricerg4tint = costtint;} else {pricerg4tint = 0;}
	if (Ofm.rg5tint.value != "None") {pricerg5tint = costtint;} else {pricerg5tint = 0;}
	if (Ofm.rg6tint.value != "None") {pricerg6tint = costtint;} else {pricerg6tint = 0;}
	if (Ofm.rg9tint.value != "None") {pricerg9tint = costtint;} else {pricerg9tint = 0;}
	if (Ofm.rgdtint.value != "None") {pricergdtint = costtint;} else {pricergdtint = 0;}
	if (Ofm.rghtint.value != "None") {pricerghtint = costtint;} else {pricerghtint = 0;}
	if (Ofm.rgitint.value != "None") {pricergitint = costtint;} else {pricergitint = 0;}
	if (Ofm.hrctint.value != "None") {pricehrctint = costtint;} else {pricehrctint = 0;}
	if (Ofm.hritint.value != "None") {pricehritint = costtint;} else {pricehritint = 0;}
	if (Ofm.ac1tint.value != "None") {priceac1tint = costtint;} else {priceac1tint = 0;}
	if (Ofm.ac2tint.value != "None") {priceac2tint = costtint;} else {priceac2tint = 0;}
	if (Ofm.ac3tint.value != "None") {priceac3tint = costtint;} else {priceac3tint = 0;}
	if (Ofm.ac4tint.value != "None") {priceac4tint = costtint;} else {priceac4tint = 0;}
	if (Ofm.ac5tint.value != "None") {priceac5tint = costtint;} else {priceac5tint = 0;}
	if (Ofm.ac6tint.value != "None") {priceac6tint = costtint;} else {priceac6tint = 0;}
	if (Ofm.ac7tint.value != "None") {priceac7tint = costtint;} else {priceac7tint = 0;}
	if (Ofm.el0tint.value != "None") {priceel0tint = costtint;} else {priceel0tint = 0;}
	if (Ofm.rgltint.value != "None") {pricergltint = costtint;} else {pricergltint = 0;}
//	if (Ofm.fr1tint.value != "None") {pricefr1tint = costtint;} else {pricefr1tint = 0;}
	if (Ofm.fr2tint.value != "None") {pricefr2tint = costtint;} else {pricefr2tint = 0;}
//	if (Ofm.frctint.value != "None") {pricefrctint = costtint;} else {pricefrctint = 0;}
//	if (Ofm.frftint.value != "None") {pricefrftint = costtint;} else {pricefrftint = 0;}
	if (Ofm.frrtint.value != "None") {pricefrrtint = costtint;} else {pricefrrtint = 0;}
//	if (Ofm.pr1tint.value != "None") {pricepr1tint = costtint;} else {pricepr1tint = 0;}
	if (Ofm.pr2tint.value != "None") {pricepr2tint = costtint;} else {pricepr2tint = 0;}
//	if (Ofm.pr3tint.value != "None") {pricepr3tint = costtint;} else {pricepr3tint = 0;}
	if (Ofm.pr4tint.value != "None") {pricepr4tint = costtint;} else {pricepr4tint = 0;}
//	if (Ofm.pr5tint.value != "None") {pricepr5tint = costtint;} else {pricepr5tint = 0;}

	if (Ofm.own1tint.value != "None") {priceown1tint = costtint;} else {priceown1tint = 0;}
	if (Ofm.own2tint.value != "None") {priceown2tint = costtint;} else {priceown2tint = 0;}

	if	((Math.abs(Ofm.sphdptrright.value) < sphthreshold) && (Math.abs(Ofm.sphdptrleft.value) < sphthreshold) && 
		(Math.abs(Ofm.cyldptrright.value) < cylthreshold) && (Math.abs(Ofm.cyldptrleft.value) < cylthreshold)) 
		{
			pricefrrg0=pricefrlowpresn + priceprism + pricerg0tint;
			pricefrrg2=pricefrlowpresn + priceprism + pricerg2tint;
			pricefrrga=pricefrlowpresn + priceprism + pricergatint;
			pricefrrgb=pricefrlowpresn + priceprism + pricergbtint;
			pricefrrgc=pricefrlowpresn + priceprism + pricergctint;
			pricefrrgl=pricefrlowpresn + priceprism + pricergltint;
			pricefrrgf=pricefrlowpresn + priceprism + pricergftint;
			pricefrrgv=pricefrlowpresn + priceprism + pricergvtint;
			pricefrrgw=pricefrlowpresn + priceprism + pricergwtint;
			pricefrrgy=pricefrlowpresn + priceprism + pricergytint;
//			pricefrfr1=pricefrlowpresn + priceprism + pricefr1tint;
			pricefrfr2=pricefrlowpresn + priceprism + pricefr2tint;
//			pricefrfrc=pricefrlowpresn + priceprism + pricefrctint;
//			pricefrfrf=pricefrlowpresn + priceprism + pricefrftint;
//			pricefrfrg=pricefrlowpresn + priceprism + pricefrgtint;
			pricefrfrr=pricefrlowpresn + priceprism + pricefrrtint;
			pricefrfrm=pricefrlowpresn + priceprism + pricefrmtint;
//			pricehrpr1=pricefrlowpresn + pricehrglaze + priceprism + pricepr1tint;
			pricehrpr2=pricefrlowpresn + pricehrglaze + priceprism + pricepr2tint;
//			pricehrpr3=pricefrlowpresn + pricehrglaze + priceprism + pricepr3tint;
			pricehrpr4=pricefrlowpresn + pricehrglaze + priceprism + pricepr4tint;
//			pricehrpr5=pricefrlowpresn + pricehrglaze + priceprism + pricepr5tint;
			pricehrel8=pricefrlowpresn + pricehrglaze + priceprism + priceel8tint;
			pricehrrg4=pricefrlowpresn + pricehrglaze + priceprism + pricerg4tint;
			pricehrrg5=pricefrlowpresn + pricehrglaze + priceprism + pricerg5tint;
			pricehrrg6=pricefrlowpresn + pricehrglaze + priceprism + pricerg6tint;
			pricehrrg3=pricefrlowpresn + pricehrglaze + priceprism + pricerg3tint;
			pricehrrg9=pricefrlowpresn + pricehrglaze + priceprism + pricerg9tint;
			pricehrrgd=pricefrlowpresn + pricehrglaze + priceprism + pricergdtint;
			pricehrrgh=pricefrlowpresn + pricehrglaze + priceprism + pricerghtint;
			pricehrrgi=pricefrlowpresn + pricehrglaze + priceprism + pricergitint;
			pricehrhrc=pricefrlowpresn + pricehrglaze + priceprism + pricehrctint;
			pricehrhri=pricefrlowpresn + pricehrglaze + priceprism + pricehritint;
			pricefrac1=pricefrlowpresn + priceprism + priceac1tint;
			picefrac2=pricefrlowpresn + priceprism + priceac2tint;
			pricefrac3=pricefrlowpresn + priceprism + priceac3tint;
			pricefrac4=pricefrlowpresn + priceprism + priceac4tint;
			pricefrac5=pricefrlowpresn + priceprism + priceac5tint;
			pricefrac6=pricefrlowpresn + priceprism + priceac6tint;
			pricehrac7=pricefrlowpresn + pricehrglaze + priceprism + priceac7tint;
			pricefrel0=pricefrlowpresn + priceprism + priceel0tint;

			if (Ofm.frametypeown1.value == "FullRim") {priceof1=pricefrlowpresn + priceprism + priceown1tint;};
			if (Ofm.frametypeown1.value == "PartRim") {priceof1=pricefrlowpresn + pricehrglaze + priceprism + priceown1tint;};
			if (Ofm.frametypeown2.value == "FullRim") {priceof2=pricefrlowpresn + priceprism + priceown2tint;};
			if (Ofm.frametypeown2.value == "PartRim") {priceof2=pricefrlowpresn + pricehrglaze + priceprism + priceown2tint;};
		}
	else
		{
			pricefrrg0=pricefrhighpresn + priceprism + pricerg0tint;
			pricefrrg2=pricefrhighpresn + priceprism + pricerg2tint;
			pricefrrga=pricefrhighpresn + priceprism + pricergatint;
			pricefrrgb=pricefrhighpresn + priceprism + pricergbtint;
			pricefrrgc=pricefrhighpresn + priceprism + pricergctint;
			pricefrrgl=pricefrhighpresn + priceprism + pricergltint;
			pricefrrgf=pricefrhighpresn + priceprism + pricergftint;
			pricefrrgv=pricefrhighpresn + priceprism + pricergvtint;
			pricefrrgw=pricefrhighpresn + priceprism + pricergwtint;
			pricefrrgy=pricefrhighpresn + priceprism + pricergytint;
//			pricefrfr1=pricefrhighpresn + priceprism + pricefr1tint;
			pricefrfr2=pricefrhighpresn + priceprism + pricefr2tint;
//			pricefrfrc=pricefrhighpresn + priceprism + pricefrctint;
//			pricefrfrf=pricefrhighpresn + priceprism + pricefrftint;
//			pricefrfrg=pricefrhighpresn + priceprism + pricefrgtint;
			pricefrfrr=pricefrhighpresn + priceprism + pricefrrtint;
			pricefrfrm=pricefrhighpresn + priceprism + pricefrmtint;
//			pricehrpr1=pricefrhighpresn + pricehrglaze + priceprism + pricepr1tint;
			pricehrpr2=pricefrhighpresn + pricehrglaze + priceprism + pricepr2tint;
//			pricehrpr3=pricefrhighpresn + pricehrglaze + priceprism + pricepr3tint;
			pricehrpr4=pricefrhighpresn + pricehrglaze + priceprism + pricepr4tint;
//			pricehrpr5=pricefrhighpresn + pricehrglaze + priceprism + pricepr5tint;
			pricehrel8=pricefrhighpresn + pricehrglaze + priceprism + priceel8tint;
			pricehrrg4=pricefrhighpresn + pricehrglaze + priceprism + pricerg4tint;
			pricehrrg5=pricefrhighpresn + pricehrglaze + priceprism + pricerg5tint;
			pricehrrg6=pricefrhighpresn + pricehrglaze + priceprism + pricerg6tint;
			pricehrrg3=pricefrhighpresn + pricehrglaze + priceprism + pricerg3tint;
			pricehrrg9=pricefrhighpresn + pricehrglaze + priceprism + pricerg9tint;
			pricehrrgd=pricefrhighpresn + pricehrglaze + priceprism + pricergdtint;
			pricehrrgh=pricefrhighpresn + pricehrglaze + priceprism + pricerghtint;
			pricehrrgi=pricefrhighpresn + pricehrglaze + priceprism + pricergitint;
			pricehrhrc=pricefrhighpresn + pricehrglaze + priceprism + pricehrctint;
			pricehrhri=pricefrhighpresn + pricehrglaze + priceprism + pricehritint;
			pricefrac1=pricefrhighpresn + priceprism + priceac1tint;
			pricefrac2=pricefrhighpresn + priceprism + priceac2tint;
			pricefrac3=pricefrhighpresn + priceprism + priceac3tint;
			pricefrac4=pricefrhighpresn + priceprism + priceac4tint;
			pricefrac5=pricefrhighpresn + priceprism + priceac5tint;
			pricefrac6=pricefrhighpresn + priceprism + priceac6tint;
			pricehrac7=pricefrhighpresn + pricehrglaze + priceprism + priceac7tint;
			pricefrel0=pricefrhighpresn + priceprism + priceel0tint;

			if (Ofm.frametypeown1.value == "FullRim") {priceof1=pricefrhighpresn + priceprism + priceown1tint;};
			if (Ofm.frametypeown1.value == "PartRim") {priceof1=pricefrhighpresn + pricehrglaze + priceprism + priceown1tint;};
			if (Ofm.frametypeown2.value == "FullRim") {priceof2=pricefrhighpresn + priceprism + priceown2tint;};
			if (Ofm.frametypeown2.value == "PartRim") {priceof2=pricefrhighpresn + pricehrglaze + priceprism + priceown2tint;};
			}
	} //end function AssignPriceDC(Ofm)

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function ValidateItemDataDC(Ofm)
{
if 	(
	(Ofm.pr2qty.value=="0") && (Ofm.pr4qty.value=="0") &&
	(Ofm.el8qty.value=="0") &&
	(Ofm.hriqty.value=="0") && (Ofm.hrcqty.value=="0") && (Ofm.el0qty.value=="0") &&
	(Ofm.fr2qty.value=="0") && (Ofm.ac1qty.value=="0") && (Ofm.ac2qty.value=="0") &&
	(Ofm.rgyqty.value=="0") && (Ofm.frrqty.value=="0") && (Ofm.frmqty.value=="0") &&
	(Ofm.rg0qty.value=="0") && (Ofm.rg2qty.value=="0") && (Ofm.rgcqty.value=="0") && (Ofm.rglqty.value=="0") && 
	(Ofm.rgfqty.value=="0") && (Ofm.rgbqty.value=="0") && (Ofm.ac3qty.value=="0") && (Ofm.rgaqty.value=="0") &&
	(Ofm.ac4qty.value=="0") && (Ofm.ac5qty.value=="0") && (Ofm.ac6qty.value=="0") && (Ofm.ac7qty.value=="0") && 
	(Ofm.rgvqty.value=="0") && (Ofm.rghqty.value=="0") && (Ofm.rgiqty.value=="0") && (Ofm.rgwqty.value=="0") && (Ofm.rg9qty.value=="0") &&
	(Ofm.rg3qty.value=="0") && (Ofm.rgdqty.value=="0") && (Ofm.rg4qty.value=="0") && (Ofm.rg5qty.value=="0") && (Ofm.rg6qty.value=="0") &&
	(Ofm.frametypeown1.value=="") && (Ofm.frametypeown2.value=="") 
	)
	{alert("NO FRAMES SELECTED"); return 0;}

if	(
	(((Ofm.rg0tint.value != "None") && (Ofm.rg0tintlev.value == "")) || ((Ofm.rg0tint.value == "None") && (Ofm.rg0tintlev.value != ""))) ||
	(((Ofm.rg2tint.value != "None") && (Ofm.rg2tintlev.value == "")) || ((Ofm.rg2tint.value == "None") && (Ofm.rg2tintlev.value != ""))) ||
	(((Ofm.rgatint.value != "None") && (Ofm.rgatintlev.value == "")) || ((Ofm.rgatint.value == "None") && (Ofm.rgatintlev.value != ""))) ||
	(((Ofm.rgbtint.value != "None") && (Ofm.rgbtintlev.value == "")) || ((Ofm.rgbtint.value == "None") && (Ofm.rgbtintlev.value != ""))) ||
	(((Ofm.rgctint.value != "None") && (Ofm.rgctintlev.value == "")) || ((Ofm.rgctint.value == "None") && (Ofm.rgctintlev.value != "")))  ||
	(((Ofm.rgltint.value != "None") && (Ofm.rgltintlev.value == "")) || ((Ofm.rgltint.value == "None") && (Ofm.rgltintlev.value != ""))) ||
	(((Ofm.rgftint.value != "None") && (Ofm.rgftintlev.value == "")) || ((Ofm.rgftint.value == "None") && (Ofm.rgftintlev.value != ""))) ||
	(((Ofm.rgvtint.value != "None") && (Ofm.rgvtintlev.value == "")) || ((Ofm.rgvtint.value == "None") && (Ofm.rgvtintlev.value != ""))) ||
	(((Ofm.rgwtint.value != "None") && (Ofm.rgwtintlev.value == "")) || ((Ofm.rgwtint.value == "None") && (Ofm.rgwtintlev.value != ""))) ||
	(((Ofm.rgytint.value != "None") && (Ofm.rgytintlev.value == "")) || ((Ofm.rgytint.value == "None") && (Ofm.rgytintlev.value != ""))) ||
//	(((Ofm.fr1tint.value != "None") && (Ofm.fr1tintlev.value == "")) || ((Ofm.fr1tint.value == "None") && (Ofm.fr1tintlev.value != ""))) ||
	(((Ofm.fr2tint.value != "None") && (Ofm.fr2tintlev.value == "")) || ((Ofm.fr2tint.value == "None") && (Ofm.fr2tintlev.value != ""))) ||
//	(((Ofm.frctint.value != "None") && (Ofm.frctintlev.value == "")) || ((Ofm.frctint.value == "None") && (Ofm.frctintlev.value != ""))) ||
//	(((Ofm.frftint.value != "None") && (Ofm.frftintlev.value == "")) || ((Ofm.frftint.value == "None") && (Ofm.frftintlev.value != ""))) ||
//	(((Ofm.frgtint.value != "None") && (Ofm.frgtintlev.value == "")) || ((Ofm.frgtint.value == "None") && (Ofm.frgtintlev.value != ""))) ||
	(((Ofm.frrtint.value != "None") && (Ofm.frrtintlev.value == "")) || ((Ofm.frrtint.value == "None") && (Ofm.frrtintlev.value != ""))) ||
	(((Ofm.frmtint.value != "None") && (Ofm.frmtintlev.value == "")) || ((Ofm.frmtint.value == "None") && (Ofm.frmtintlev.value != ""))) ||
//	(((Ofm.pr1tint.value != "None") && (Ofm.pr1tintlev.value == "")) || ((Ofm.pr1tint.value == "None") && (Ofm.pr1tintlev.value != ""))) ||
	(((Ofm.pr2tint.value != "None") && (Ofm.pr2tintlev.value == "")) || ((Ofm.pr2tint.value == "None") && (Ofm.pr2tintlev.value != ""))) ||
//	(((Ofm.pr3tint.value != "None") && (Ofm.pr3tintlev.value == "")) || ((Ofm.pr3tint.value == "None") && (Ofm.pr3tintlev.value != ""))) ||
	(((Ofm.pr4tint.value != "None") && (Ofm.pr4tintlev.value == "")) || ((Ofm.pr4tint.value == "None") && (Ofm.pr4tintlev.value != ""))) ||
//	(((Ofm.pr5tint.value != "None") && (Ofm.pr5tintlev.value == "")) || ((Ofm.pr5tint.value == "None") && (Ofm.pr5tintlev.value != ""))) ||
	(((Ofm.el8tint.value != "None") && (Ofm.el8tintlev.value == "")) || ((Ofm.el8tint.value == "None") && (Ofm.el8tintlev.value != ""))) ||
	(((Ofm.rg4tint.value != "None") && (Ofm.rg4tintlev.value == "")) || ((Ofm.rg4tint.value == "None") && (Ofm.rg4tintlev.value != ""))) ||
	(((Ofm.rg5tint.value != "None") && (Ofm.rg5tintlev.value == "")) || ((Ofm.rg5tint.value == "None") && (Ofm.rg5tintlev.value != ""))) ||
	(((Ofm.rg6tint.value != "None") && (Ofm.rg6tintlev.value == "")) || ((Ofm.rg6tint.value == "None") && (Ofm.rg6tintlev.value != ""))) ||
	(((Ofm.rg3tint.value != "None") && (Ofm.rg3tintlev.value == "")) || ((Ofm.rg3tint.value == "None") && (Ofm.rg3tintlev.value != ""))) ||
	(((Ofm.rg9tint.value != "None") && (Ofm.rg9tintlev.value == "")) || ((Ofm.rg9tint.value == "None") && (Ofm.rg9tintlev.value != ""))) ||
	(((Ofm.rgdtint.value != "None") && (Ofm.rgdtintlev.value == "")) || ((Ofm.rgdtint.value == "None") && (Ofm.rgdtintlev.value != ""))) ||
	(((Ofm.rghtint.value != "None") && (Ofm.rghtintlev.value == "")) || ((Ofm.rghtint.value == "None") && (Ofm.rghtintlev.value != ""))) ||
	(((Ofm.rgitint.value != "None") && (Ofm.rgitintlev.value == "")) || ((Ofm.rgitint.value == "None") && (Ofm.rgitintlev.value != ""))) ||
	(((Ofm.hrctint.value != "None") && (Ofm.hrctintlev.value == "")) || ((Ofm.hrctint.value == "None") && (Ofm.hrctintlev.value != ""))) ||
	(((Ofm.hritint.value != "None") && (Ofm.hritintlev.value == "")) || ((Ofm.hritint.value == "None") && (Ofm.hritintlev.value != ""))) ||
	(((Ofm.ac1tint.value != "None") && (Ofm.ac1tintlev.value == "")) || ((Ofm.ac1tint.value == "None") && (Ofm.ac1tintlev.value != ""))) ||
	(((Ofm.ac2tint.value != "None") && (Ofm.ac2tintlev.value == "")) || ((Ofm.ac2tint.value == "None") && (Ofm.ac2tintlev.value != ""))) ||
	(((Ofm.ac3tint.value != "None") && (Ofm.ac3tintlev.value == "")) || ((Ofm.ac3tint.value == "None") && (Ofm.ac3tintlev.value != ""))) ||
	(((Ofm.ac4tint.value != "None") && (Ofm.ac4tintlev.value == "")) || ((Ofm.ac4tint.value == "None") && (Ofm.ac4tintlev.value != ""))) ||
	(((Ofm.ac5tint.value != "None") && (Ofm.ac5tintlev.value == "")) || ((Ofm.ac5tint.value == "None") && (Ofm.ac5tintlev.value != ""))) ||
	(((Ofm.ac6tint.value != "None") && (Ofm.ac6tintlev.value == "")) || ((Ofm.ac6tint.value == "None") && (Ofm.ac6tintlev.value != ""))) ||
	(((Ofm.ac7tint.value != "None") && (Ofm.ac7tintlev.value == "")) || ((Ofm.ac7tint.value == "None") && (Ofm.ac7tintlev.value != ""))) ||
	(((Ofm.el0tint.value != "None") && (Ofm.el0tintlev.value == "")) || ((Ofm.el0tint.value == "None") && (Ofm.el0tintlev.value != ""))) ||
	(((Ofm.own1tint.value != "None") && (Ofm.own1tintlev.value == "")) || ((Ofm.own1tint.value == "None") && (Ofm.own1tintlev.value != ""))) ||
	(((Ofm.own2tint.value != "None") && (Ofm.own2tintlev.value == "")) || ((Ofm.own2tint.value == "None") && (Ofm.own2tintlev.value != ""))) 
	)
	{alert("PLEASE SELECT TINT COLOUR AND TINT LEVEL"); return 0;	}
}// end function ValidateItemDataDC(Ofm)

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


function LoadFrameDataDC(Ofm,currtype)
{
if(!(Ofm.rg0qty.value=="0"))	{Load(this.form,"RG0","FullRim","Presn",Ofm.rg0qty.value,pricefrrg0,"Gold",currtype,Ofm.rg0tint.value,Ofm.rg0tintlev.value);select++;}
if(!(Ofm.rg2qty.value=="0"))	{Load(this.form,"RG2","FullRim","Presn",Ofm.rg2qty.value,pricefrrg2,"Gunm",currtype,Ofm.rg2tint.value,Ofm.rg2tintlev.value);select++;}
if(!(Ofm.rgaqty.value=="0"))	{Load(this.form,"RGA","FullRim","Presn",Ofm.rgaqty.value,pricefrrga,"Black",currtype,Ofm.rgatint.value,Ofm.rgatintlev.value);select++;}
if(!(Ofm.rgbqty.value=="0"))	{Load(this.form,"RGB","FullRim","Presn",Ofm.rgbqty.value,pricefrrgb,"AqSlv",currtype,Ofm.rgbtint.value,Ofm.rgbtintlev.value);select++;}
if(!(Ofm.rgcqty.value=="0"))	{Load(this.form,"RGC","FullRim","Presn",Ofm.rgcqty.value,pricefrrgc,"Copr",currtype,Ofm.rgctint.value,Ofm.rgctintlev.value);select++;}
if(!(Ofm.rglqty.value=="0"))	{Load(this.form,"RGL","FullRim","Presn",Ofm.rglqty.value,pricefrrgl,"Lilac",currtype,Ofm.rgltint.value,Ofm.rgltintlev.value);select++;}
if(!(Ofm.rgfqty.value=="0"))	{Load(this.form,"RGF","FullRim","Presn",Ofm.rgfqty.value,pricefrrgf,"Silv",currtype,Ofm.rgftint.value,Ofm.rgftintlev.value);select++;}
if(!(Ofm.rgvqty.value=="0"))	{Load(this.form,"RGV","FullRim","Presn",Ofm.rgvqty.value,pricefrrgv,"Brnz",currtype,Ofm.rgvtint.value,Ofm.rgvtintlev.value);select++;}
if(!(Ofm.rgwqty.value=="0"))	{Load(this.form,"RGW","FullRim","Presn",Ofm.rgwqty.value,pricefrrgw,"Gold",currtype,Ofm.rgwtint.value,Ofm.rgwtintlev.value);select++;}
if(!(Ofm.rgyqty.value=="0"))	{Load(this.form,"RGY","FullRim","Presn",Ofm.rgyqty.value,pricefrrgy,"Silv",currtype,Ofm.rgytint.value,Ofm.rgytintlev.value);select++;}
//if(!(Ofm.fr1qty.value=="0"))	{Load(this.form,"FR1","FullRim","Presn",Ofm.fr1qty.value,pricefrfr1,"Gunm",currtype,Ofm.fr1tint.value,Ofm.fr1tintlev.value);select++;}
if(!(Ofm.fr2qty.value=="0"))	{Load(this.form,"FR2","FullRim","Presn",Ofm.fr2qty.value,pricefrfr2,"Purpl",currtype,Ofm.fr2tint.value,Ofm.fr2tintlev.value);select++;}
//if(!(Ofm.frcqty.value=="0"))	{Load(this.form,"FRC","FullRim","Presn",Ofm.frcqty.value,pricefrfrc,"Brown",currtype,Ofm.frctint.value,Ofm.frctintlev.value);select++;}
//if(!(Ofm.frfqty.value=="0"))		{Load(this.form,"FRF","FullRim","Presn",Ofm.frfqty.value,pricefrfrf,"Brown",currtype,Ofm.frftint.value,Ofm.frftintlev.value);select++;}
//if(!(Ofm.frgqty.value=="0"))	{Load(this.form,"FRG","FullRim","Presn",Ofm.frgqty.value,pricefrfrg,"Gold",currtype,Ofm.frgtint.value,Ofm.frgtintlev.value);select++;}
if(!(Ofm.frrqty.value=="0"))	{Load(this.form,"FRR","FullRim","Presn",Ofm.frrqty.value,pricefrfrr,"RedBlk",currtype,Ofm.frrtint.value,Ofm.frrtintlev.value);select++;}
if(!(Ofm.frmqty.value=="0"))	{Load(this.form,"FRM","FullRim","Presn",Ofm.frmqty.value,pricefrfrm,"Lilac",currtype,Ofm.frmtint.value,Ofm.frmtintlev.value);select++;}
//if(!(Ofm.pr1qty.value=="0"))	{Load(this.form,"PR1","PartRim","Presn",Ofm.pr1qty.value,pricehrpr1,"Silv",currtype,Ofm.pr1tint.value,Ofm.pr1tintlev.value);select++;}
if(!(Ofm.pr2qty.value=="0"))	{Load(this.form,"PR2","PartRim","Presn",Ofm.pr2qty.value,pricehrpr2,"Purpl",currtype,Ofm.pr2tint.value,Ofm.pr2tintlev.value);select++;}
//if(!(Ofm.pr3qty.value=="0"))	{Load(this.form,"PR3","PartRim","Presn",Ofm.pr3qty.value,pricehrpr3,"Gunm",currtype,Ofm.pr3tint.value,Ofm.pr3tintlev.value);select++;}
if(!(Ofm.pr4qty.value=="0"))	{Load(this.form,"PR4","PartRim","Presn",Ofm.pr4qty.value,pricehrpr4,"Purpl",currtype,Ofm.pr4tint.value,Ofm.pr4tintlev.value);select++;}
//if(!(Ofm.pr5qty.value=="0"))	{Load(this.form,"PR5","PartRim","Presn",Ofm.pr5qty.value,pricehrpr5,"Silv",currtype,Ofm.pr5tint.value,Ofm.pr5tintlev.value);select++;}
if(!(Ofm.el8qty.value=="0"))	{Load(this.form,"EL8","PartRim","Presn",Ofm.el8qty.value,pricehrel8,"Choco",currtype,Ofm.el8tint.value,Ofm.el8tintlev.value);select++;}
if(!(Ofm.rg4qty.value=="0"))	{Load(this.form,"RG4","PartRim","Presn",Ofm.rg4qty.value,pricehrrg4,"Bronz",currtype,Ofm.rg4tint.value,Ofm.rg4tintlev.value);select++;}
if(!(Ofm.rg5qty.value=="0"))	{Load(this.form,"RG5","PartRim","Presn",Ofm.rg5qty.value,pricehrrg5,"Gunm",currtype,Ofm.rg5tint.value,Ofm.rg5tintlev.value);select++;}
if(!(Ofm.rg6qty.value=="0"))	{Load(this.form,"RG6","PartRim","Presn",Ofm.rg6qty.value,pricehrrg6,"Blue",currtype,Ofm.rg6tint.value,Ofm.rg6tintlev.value);select++;}
if(!(Ofm.rg3qty.value=="0"))	{Load(this.form,"RG3","PartRim","Presn",Ofm.rg3qty.value,pricehrrg3,"Black",currtype,Ofm.rg3tint.value,Ofm.rg3tintlev.value);select++;}
if(!(Ofm.rg9qty.value=="0"))	{Load(this.form,"RG9","PartRim","Presn",Ofm.rg9qty.value,pricehrrg9,"Burg",currtype,Ofm.rg9tint.value,Ofm.rg9tintlev.value);select++;}
if(!(Ofm.rgdqty.value=="0"))	{Load(this.form,"RGD","PartRim","Presn",Ofm.rgdqty.value,pricehrrgd,"Blue",currtype,Ofm.rgdtint.value,Ofm.rgdtintlev.value);select++;}
if(!(Ofm.rghqty.value=="0"))	{Load(this.form,"RGH","PartRim","Presn",Ofm.rghqty.value,pricehrrgh,"Gunm",currtype,Ofm.rghtint.value,Ofm.rghtintlev.value);select++;}
if(!(Ofm.rgiqty.value=="0"))	{Load(this.form,"RGI","PartRim","Presn",Ofm.rgiqty.value,pricehrrgi,"Gold",currtype,Ofm.rgitint.value,Ofm.rgitintlev.value);select++;}
if(!(Ofm.hrcqty.value=="0"))	{Load(this.form,"HRC","PartRim","Presn",Ofm.hrcqty.value,pricehrhrc,"Silver",currtype,Ofm.hrctint.value,Ofm.hrctintlev.value);select++;}
if(!(Ofm.hriqty.value=="0"))	{Load(this.form,"HRI","PartRim","Presn",Ofm.hriqty.value,pricehrhri,"Gold",currtype,Ofm.hritint.value,Ofm.hritintlev.value);select++;}
if(!(Ofm.ac1qty.value=="0"))	{Load(this.form,"AC1","Fashion","Presn",Ofm.ac1qty.value,pricefrac1,"BlkRed",currtype,Ofm.ac1tint.value,Ofm.ac1tintlev.value);select++;}
if(!(Ofm.ac2qty.value=="0"))	{Load(this.form,"AC2","Fashion","Presn",Ofm.ac2qty.value,pricefrac2,"BlkWht",currtype,Ofm.ac2tint.value,Ofm.ac2tintlev.value);select++;}
if(!(Ofm.ac3qty.value=="0"))	{Load(this.form,"AC3","Fashion","Presn",Ofm.ac3qty.value,pricefrac3,"AmBlu",currtype,Ofm.ac3tint.value,Ofm.ac3tintlev.value);select++;}
if(!(Ofm.ac4qty.value=="0"))	{Load(this.form,"AC4","Fashion","Presn",Ofm.ac4qty.value,pricefrac4,"RdBn",currtype,Ofm.ac4tint.value,Ofm.ac4tintlev.value);select++;}
if(!(Ofm.ac5qty.value=="0"))	{Load(this.form,"AC5","Fashion","Presn",Ofm.ac5qty.value,pricefrac5,"RedT",currtype,Ofm.ac5tint.value,Ofm.ac5tintlev.value);select++;}
if(!(Ofm.ac6qty.value=="0"))	{Load(this.form,"AC6","Fashion","Presn",Ofm.ac6qty.value,pricefrac6,"Black",currtype,Ofm.ac6tint.value,Ofm.ac6tintlev.value);select++;}
if(!(Ofm.ac7qty.value=="0"))	{Load(this.form,"AC7","Fashion","Presn",Ofm.ac7qty.value,pricehrac7,"Gunm",currtype,Ofm.ac7tint.value,Ofm.ac7tintlev.value);select++;}
if(!(Ofm.el0qty.value=="0"))	{Load(this.form,"EL0","Fashion","Presn",Ofm.el0qty.value,pricefrel0,"WhtBlk",currtype,Ofm.el0tint.value,Ofm.el0tintlev.value);select++;}
if(!(Ofm.frametypeown1.value==""))	{Load(this.form,"Own",Ofm.frametypeown1.value,"Presn",1,priceof1,"NA__",currtype,Ofm.own1tint.value,Ofm.own1tintlev.value);select++;}
if(!(Ofm.frametypeown2.value==""))	{Load(this.form,"Own",Ofm.frametypeown2.value,"Presn",1,priceof2,"NA__",currtype,Ofm.own2tint.value,Ofm.own2tintlev.value);select++;}
}// end function LoadFrameDataDC(Ofm,currtype)






///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function tinthelpnewWindow() 	{tinthelpWindow = window.open('tinthelprdr.txt', 'tinthelpWin','width=620,height=150,left=30,top=30')}
function bcbnewWindow() {bcbWindow = window.open('bcb.jpg', 'bcbWin','width=660,height=420,left=30,top=30')}
function bcsnewWindow() {bcsWindow = window.open('bcs.jpg', 'bcsWin','width=660,height=420,left=30,top=30')}
function bcznewWindow() {bczWindow = window.open('bcz.jpg', 'bczWin','width=660,height=420,left=30,top=30')}
function scvnewWindow() {scvWindow = window.open('scv.jpg', 'scvWin','width=660,height=420,left=30,top=30')}
function ftlxnewWindow() {ftlxWindow = window.open('ftlx.jpg', 'ftlxWin','width=610,height=400,left=30,top=30')}
function ftlnewnewWindow() {ftlnewWindow = window.open('ftlnew.jpg', 'ftlnewWin','width=610,height=400,left=30,top=30')}
function rganewWindow() {rgaWindow = window.open('rga.jpg', 'rgaWin','width=660,height=440,left=30,top=30')}
function rg4newWindow() {rg4Window = window.open('rg4.jpg', 'rg4Win','width=660,height=440,left=30,top=30')}
function rg5newWindow() {rg5Window = window.open('rg5.jpg', 'rg5Win','width=660,height=440,left=30,top=30')}
function rg6newWindow() {rg6Window = window.open('rg6.jpg', 'rg6Win','width=660,height=440,left=30,top=30')}
function rg9newWindow() 	{rg9Window = window.open('rg9.jpg', 'rg9Win','width=660,height=420,left=30,top=30')}
function elaxnewWindow() 	{elaxWindow = window.open('elax.jpg', 'elaxWin','width=660,height=420,left=30,top=30')}
function elbxnewWindow() 	{elbxWindow = window.open('elbx.jpg', 'elbxWin','width=660,height=420,left=30,top=30')}
function elcxnewWindow() 	{elcxWindow = window.open('elcx.jpg', 'elcxWin','width=660,height=420,left=30,top=30')}
function eldnewWindow() 	{eldWindow = window.open('eld.jpg', 'eldWin','width=660,height=420,left=30,top=30')}
function elenewWindow() 	{eleWindow = window.open('ele.jpg', 'eleWin','width=660,height=420,left=30,top=30')}
function elfnewWindow() 	{elfWindow = window.open('elf.jpg', 'elfWin','width=660,height=420,left=30,top=30')}
function elhnewWindow() 	{elhWindow = window.open('elh.jpg', 'elhWin','width=660,height=420,left=30,top=30')}
function ellnewWindow() 	{ellWindow = window.open('ell.jpg', 'ellWin','width=660,height=420,left=30,top=30')}
function elnnewWindow() {elnWindow = window.open('eln.jpg', 'elnWin','width=660,height=420,left=30,top=30')}
function elqnewWindow() 	{elqWindow = window.open('elq.jpg', 'elqWin','width=660,height=420,left=30,top=30')}
function elrnewWindow() 	{elrWindow = window.open('elr.jpg', 'elrWin','width=660,height=420,left=30,top=30')}
function elsnewWindow() 	{elsWindow = window.open('els.jpg', 'elsWin','width=660,height=420,left=30,top=30')}
function eltnewWindow() 	{eltWindow = window.open('elt.jpg', 'eltWin','width=660,height=420,left=30,top=30')}
function elvnewWindow() 	{elvWindow = window.open('elv.jpg', 'elvWin','width=660,height=420,left=30,top=30')}
function elwnewWindow() 	{elwWindow = window.open('elw.jpg', 'elwWin','width=660,height=420,left=30,top=30')}
function thmnewWindow() 	{thmWindow = window.open('thm.jpg', 'thmWin','width=660,height=420,left=30,top=30')}
function thgnewWindow() 	{thgWindow = window.open('thg.jpg', 'thgWin','width=660,height=420,left=30,top=30')}
function thbnewWindow() 	{thbWindow = window.open('thb.jpg', 'thbWin','width=660,height=420,left=30,top=30')}
function tbknewWindow() 	{tbkWindow = window.open('tbk.jpg', 'tbkWin','width=660,height=420,left=30,top=30')}
function sr1newWindow() {sr1Window = window.open('sr1.jpg', 'sr1Win','width=660,height=420,left=30,top=30')}
function sr0newWindow() 	{sr0Window = window.open('sr0.jpg', 'sr0Win','width=660,height=420,left=30,top=30')}
function sr2newWindow() 	{sr2Window = window.open('sr2.jpg', 'sr2Win','width=660,height=420,left=30,top=30')}
function srgnewWindow() 	{srgWindow = window.open('srg.jpg', 'srgWin','width=660,height=420,left=30,top=30')}
function srmnewWindow() 	{srmWindow = window.open('srm.jpg', 'srmWin','width=660,height=420,left=30,top=30')}
function rg0newWindow() 	{rg0Window = window.open('rg0.jpg', 'rg0Win','width=620,height=410,left=30,top=30')}
function rg2newWindow() 	{rg2Window = window.open('rg2.jpg', 'rg2Win','width=660,height=420,left=30,top=30')}
function rg8newWindow() 	{rg8Window = window.open('rg8.jpg', 'rg8Win','width=600,height=420,left=30,top=30')}
function rgbnewWindow() 	{rgbWindow = window.open('rgb.jpg', 'rgbWin','width=660,height=420,left=30,top=30')}
function rgcnewWindow() 	{rgcWindow = window.open('rgc.jpg', 'rgcWin','width=660,height=420,left=30,top=30')}
function rgcxnewWindow() 	{rgcxWindow = window.open('rgcx.jpg', 'rgcxWin','width=660,height=420,left=30,top=30')}
function rgfnewWindow() 	{rgfWindow = window.open('rgf.jpg', 'rgfWin','width=470,height=280,left=30,top=30')}
function rgvnewWindow() 	{rgvWindow = window.open('rgv.jpg', 'rgvWin','width=610,height=370,left=30,top=30')}
function rgwnewWindow() {rgwWindow = window.open('rgw.jpg', 'rgwWin','width=610,height=370,left=30,top=30')}
function rgynewWindow() {rgyWindow = window.open('rgy.jpg', 'rgyWin','width=660,height=420,left=30,top=30')}
//function frgnewWindow() {frgWindow = window.open('frg.jpg', 'frgWin','width=660,height=420,left=30,top=30')}
function frmnewWindow() {frmWindow = window.open('frm.jpg', 'frmWin','width=660,height=420,left=30,top=30')}
function frrnewWindow() {frrWindow = window.open('frr.jpg', 'frrWin','width=660,height=420,left=30,top=30')}
function el8newWindow() 	{el8Window = window.open('el8.jpg', 'el8Win','width=660,height=420,left=30,top=30')}
function rg3xnewWindow() 	{rg3xWindow = window.open('rg3x.jpg', 'rg3xWin','width=620,height=410,left=30,top=30')}
function rgdnewWindow() 	{rgdWindow = window.open('rgd.jpg', 'rgdWin','width=660,height=420,left=30,top=30')}
function rghnewWindow() 	{rghWindow = window.open('rgh.jpg', 'rghWin','width=620,height=400,left=30,top=30')}
function rginewWindow() 	{rgiWindow = window.open('rgi.jpg', 'rgiWin','width=620,height=400,left=30,top=30')}
function rgsnewWindow() 	{rgsWindow = window.open('rgs.jpg', 'rgsWin','width=660,height=420,left=30,top=30')}
function hrbnewWindow() 	{hrbWindow = window.open('hrb.jpg', 'hrbWin','width=660,height=420,left=30,top=30')}
function hrcnewWindow() 	{hrcWindow = window.open('hrc.jpg', 'hrcWin','width=660,height=420,left=30,top=30')}
function hrinewWindow() 	{hriWindow = window.open('hri.jpg', 'hriWin','width=660,height=420,left=30,top=30')}
function frbnewWindow() {frbWindow = window.open('frb.jpg', 'frbWin','width=660,height=420,left=30,top=30')}
function frdnewWindow() {frdWindow = window.open('frd.jpg', 'frdWin','width=660,height=420,left=30,top=30')}
function frhnewWindow() {frhWindow = window.open('frh.jpg', 'frhWin','width=660,height=420,left=30,top=30')}
function hr1newWindow() 	{hr1Window = window.open('hr1.jpg', 'hr1Win','width=660,height=420,left=30,top=30')}
function ac1newWindow() {ac1Window = window.open('ac1.jpg', 'ac1Win','width=660,height=420,left=30,top=30')}
function ac2newWindow() {ac2Window = window.open('ac2.jpg', 'ac2Win','width=660,height=420,left=30,top=30')}
function ac3newWindow() {ac3Window = window.open('ac3.jpg', 'ac3Win','width=660,height=420,left=30,top=30')}
function ac4newWindow() {ac4Window = window.open('ac4.jpg', 'ac4Win','width=660,height=420,left=30,top=30')}
function ac5newWindow() {ac5Window = window.open('ac5.jpg', 'ac5Win','width=660,height=420,left=30,top=30')}
function ac6newWindow() {ac6Window = window.open('ac6.jpg', 'ac6Win','width=660,height=420,left=30,top=30')}
function ac7newWindow() {ac7Window = window.open('ac7.jpg', 'ac7Win','width=660,height=420,left=30,top=30')}
function el0newWindow() {el0Window = window.open('el0.jpg', 'el0Win','width=660,height=420,left=30,top=30')}
function el1newWindow() {el1Window = window.open('el1.jpg', 'el1Win','width=660,height=420,left=30,top=30')}
function el5znewWindow() {el5zWindow = window.open('el5z.jpg', 'el5zWin','width=660,height=420,left=30,top=30')}
function eldznewWindow() {eldzWindow = window.open('eldz.jpg', 'eldzWin','width=660,height=420,left=30,top=30')}
function fo1newWindow()  {fo1Window = window.open('fo1.jpg', 'fo1Win','width=660,height=420,left=30,top=30')}
function tbbnewWindow() 	{tbbWindow = window.open('tbb.jpg', 'tbbWin','width=660,height=420,left=30,top=30')}
function tbrnewWindow() 	{tbrWindow = window.open('tbr.jpg', 'tbrWin','width=660,height=420,left=30,top=30')}
function tbgnewWindow()	{tbgWindow = window.open('tbg.jpg', 'tbgWin','width=660,height=420,left=30,top=30')}
function tbmnewWindow() {tbmWindow = window.open('tbm.jpg', 'tbmWin','width=660,height=420,left=30,top=30')}
function pcbnewWindow() {pcbWindow = window.open('pcb.jpg', 'pcbWin','width=660,height=420,left=30,top=30')}
function pcgnewWindow() {pcgWindow = window.open('pcg.jpg', 'pcgWin','width=660,height=420,left=30,top=30')}
function pcmnewWindow(){pcmWindow = window.open('pcm.jpg', 'pcmWin','width=660,height=420,left=30,top=30')}
function stgnewWindow() 	{stgWindow = window.open('stg.jpg', 'stgWin','width=470,height=280,left=30,top=30')}
function mc1newWindow(){mc1Window = window.open('mc1.jpg', 'mc1Win','width=660,height=420,left=30,top=30')}
function mc2newWindow() {mc2Window = window.open('mc2.jpg', 'mc2Win','width=660,height=420,left=30,top=30')}
function mc3newWindow() {mc3Window = window.open('mc3.jpg', 'mc3Win','width=660,height=420,left=30,top=30')}
function mc4newWindow() {mc4Window = window.open('mc4.jpg', 'mc4Win','width=660,height=420,left=30,top=30')}
function mcynewWindow()	{mcyWindow = window.open('mcy.jpg', 'mcyWin','width=660,height=420,left=30,top=30')}
function mcznewWindow() 	{mczWindow = window.open('mcz.jpg', 'mczWin','width=660,height=420,left=30,top=30')}
function mchnewWindow() 	{mchWindow = window.open('mch.jpg', 'mchWin','width=660,height=420,left=30,top=30')}
function mcinewWindow() 	{mciWindow = window.open('mci.jpg', 'mciWin','width=660,height=420,left=30,top=30')}
function mcjnewWindow() 	{mcjWindow = window.open('mcj.jpg', 'mcjWin','width=660,height=420,left=30,top=30')}
function mcknewWindow() 	{mckWindow = window.open('mck.jpg', 'mckWin','width=660,height=420,left=30,top=30')}
//function pr1newWindow() 	{pr1Window = window.open('pr1.jpg', 'pr1Win','width=660,height=420,left=30,top=30')}
function pr2newWindow() 	{pr2Window = window.open('pr2.jpg', 'pr2Win','width=660,height=420,left=30,top=30')}
//function pr3newWindow() 	{pr3Window = window.open('pr3.jpg', 'pr3Win','width=660,height=420,left=30,top=30')}
function pr4newWindow() 	{pr4Window = window.open('pr4.jpg', 'pr4Win','width=660,height=420,left=30,top=30')}
//function pr5newWindow() 	{pr5Window = window.open('pr5.jpg', 'pr5Win','width=660,height=420,left=30,top=30')}
//function fr1newWindow() 	{fr1Window = window.open('fr1.jpg', 'fr1Win','width=660,height=420,left=30,top=30')}
function fr2newWindow() 	{fr2Window = window.open('fr2.jpg', 'fr2Win','width=660,height=420,left=30,top=30')}
//function frcnewWindow() {frcWindow = window.open('frc.jpg', 'frcWin','width=660,height=420,left=30,top=30')}
//function frfnewWindow() {frfWindow = window.open('frf.jpg', 'frfWin','width=660,height=420,left=30,top=30')}
function rglnewWindow() 	{rglWindow = window.open('rgl.jpg', 'rglWin','width=660,height=420,left=30,top=30')}


