var mx = new Array();var selmx = new Array();var lenmx; var i; var selmp = new Array(); var ps = new Array(); ps[0] = 0;var rows;var pval;
var par1;var mp = new Array(); var stag;stag = 0;var stab; stab = 0;
var par2;var pd = String.fromCharCode(163);
mx[0] - "0|Type|Group|products..";
mx[1] = "1|Medical Plinths|1|3|5|2|4|26";
mx[2] = "2|Treatment Couches|8|9|7|13";
mx[3] = "3|Treatment & Clinic Chairs|6|21|11|12|22|10";
mx[4] = "4|Examination & First Aid Couches|14|15|16|17|18";
mx[5] = "5|Practice Furniture|19|20";
mx[6] = "6|Gynaecology Chair|23|24|25";
 


                                                                                                                                                              
mp[1]="CHA2100|1|Charcot|Two-section Electronic Medical Plinth|1295";
mp[2]="HAL2400|1|Halsted|Extra WideTwo-section Electronic Medical Plinth|955";
mp[3]="JEN2200|1|Jenner|Three-section Transposable Electronic Medical Plinth|1425";
mp[4]="LIS2500|1|Lister|Three-section Trendelenburg Medical Plinth|1675";
mp[5]="PEN2300|1|Penfield|Three-section Electronic Medical Plinth|1225";
mp[26]="WES2600|1|Wesley|Electronic Two-section Medical Plinth|1355";

mp[7]="HUX3200|2|Huxley|Two-section Hydraulic Treatment Couch|550";
mp[8]="OSL3100|2|Osler|Two-section Electronic  Treatment Couch|850";
mp[9]="OSL3110|2|Osler|Three-section Electronic Treatment Couch|950";
mp[13]="OSL3120|2|Osler|Electronic Couch with Trolley & Chair - Room Set (save "+pd+"240) |899";

mp[6]="ADD3300|3|Addison|Electronic Treatment Chair|1175";
mp[21]="ADD3310|3|Addison|Split Leg Electronic Treatment Chair |1275";    
mp[22]="MIL4300|3|Milton|Hydraulic Clinic Chair|495";   
mp[10]="HEN4200|3|Henderson|Hydraulic Clinic Chair (inc head,arm,foot rests)|345";
mp[11]="JOS4100|3|Joslin|Electronic Clinic Chair|649";
mp[12]="JOS4110|3|Joslin|Electronic Split Leg Clinic Chair|749";

mp[14]="DUN5100|4|Dunbar|Two section Static Exam. Couch(inc roll holder)|179";
mp[15]="DUN5140|4|Dunbar|Low-level Static Couch|179";
mp[16]="DUN5130|4|Dunbar Set|Couch,Trolley & Steps inc.roll holder (save "+pd+"48) |359";
mp[17]="PAG5200|4|Paget|Portable Examination Couch|195";
mp[18]="MAR5300|4|Marsden|Two-section Static Examination Couch|295";

mp[19]="BEA6100|5|Beaumont|Wood Treatment Plinth|925";
mp[20]="MOR6200|5|Morton|Wood Treatment Table|465";
                                                                                                                                                                                 
mp[23]="CHR4400|6|Christie|Electronic Gynaecology Chair|1249";    
mp[24]="CHR4410|6|Christie|Static Gynaecology Chair|699";    
mp[25]="BEV4500|6|Bevington|Electronic Gynaecology Couch|1549";


                                                                                                                                                                                                                             
function specP(z){
var peq = mp[z];var pez = peq.split("|");
//alert (pez[0]);
}                                                                                                                                                                                                                                                            
function specX(menu){
par1 = window.document.getElementsByTagName("input");
par2 = window.document.getElementsByTagName("img");

if (menu < 1 ){menu = 1;}
selmx = mx[menu].split("|"); lenmx = selmx.length;//alert(lenmx+" "+mp[selmx[lenmx-2]]);
par1[0].value= selmx[1];
par1[9].value = "Select Product on Left - click on image";
for (var j = 17;j < 56;j++){par1[j].style.visibility = "hidden";}

for (i = 2;i < lenmx;i++){
selmp = mp[selmx[i]].split("|");
par1[i].value = selmp[2];

var picy = selmp[0].replace(/^\s+|\s+$/g, '') ;
//alert(picy+"S.gif")
par2[i].src = picy+"S.gif";par2[i].alt = selmp[3] +pd+selmp[4];

}for (var j = i;j <8;j++){par2[j].style.visibility = "hidden";}

}
function reMind(){document.medi.qty28.focus();window.location.href="#quantity";alert("Select Quantity NOW");
//setTimeout("reMind()",9000);
}

function prodSel(ab){
if (stag==1){
if (ab==3){
if (stab ==4){orderAbove()}

if (stab ==3){par2[4].src="blank.gif";stab=4;location.href="#qqq";}

if (stab ==2){par2[4].src="blank.gif";stab=3;document.getElementById('quan').style.visibility = 'visible';document.medi.qty28.focus();window.location.href="#quantity";
setTimeout("reMind()",9000);
document.medi.T37.value="Select Quantity NOW>";}
if (stab ==1){par2[4].src="altover.gif";stab=2;
attach();
}

}
if (ab==4)
{window.location.reload();}
if (ab==5)
{var r=confirm("This will delete your selections. 'OK' to delete & exit");
if (r==true)
  {
  location.href = "http://www.meditelle.co.uk/online%20index.htm";
  }
}
}

if (stag == 0){
for (var j = 14;j < 56;j++){par1[j].style.visibility = "hidden";}

rows = 14;cols=1;
location.href = "#pro";
ab = ab+1;
var ac = selmx[ab];
selmp = mp[ac].split("|");
par1[8].value = selmp[0]+" "+selmp[2]+" "+selmp[3]+pd+selmp[4];
var picy = selmp[0].replace(/^\s+|\s+$/g, '') ;pval = eval(selmp[4]);

par1[11].value = selmp[0]+", "+selmp[2]+" "+selmp[3];par1[12].value=pval.toFixed(2);
par1[59].value = pval.toFixed(2);
par1[60].value = pval.toFixed(2);

par2[12].src = "/images/"+picy+"-online.gif";
ddArr(ac);
location.href ="#cols";
for (i = 1;i < 8;i++){par2[i].style.visibility = "visible";}

par2[4].src="opover.gif";par2[5].src="restart.gif";par2[6].src="exit.gif";
par2[1].src="blank.gif";par2[2].src="blank.gif";par2[7].src="blank.gif";par2[3].src=picy+"S.gif";

par1[1].value = "";par1[2].value="";par1[3].value="SPEC. PROGRESS";par1[4].value="Next stage";par1[5].value="Restart Spec.";par1[6].value="Cancel & Exit Spec.";par1[7].value="";

par2[3].alt = "Spec. Progress";par2[4].alt="Click here or on Next Stage button to continue to Next stage";par2[5].alt="Restart Spec.";par2[6].alt="Cancel & Exit Spec.";par2[1].alt="";par2[2].alt="";par1[7].alt="Select quantity on right";


stag=1;stab = 1;}

}                                                                                                                                                                                                                                                           

function prodSelold(ab){
for (var j = 14;j < 56;j++){par1[j].style.visibility = "hidden";}

rows = 14;cols=1;
location.href = "#pro";
ab = ab+1;
var ac = selmx[ab];
selmp = mp[ac].split("|");
par1[8].value = selmp[0]+" "+selmp[2]+" "+selmp[3]+pd+selmp[4];
var picy = selmp[0].replace(/^\s+|\s+$/g, '') ;pval = eval(selmp[4]);
par1[11].value = selmp[0]+", "+selmp[2]+" "+selmp[3];par1[12].value=pval.toFixed(2);
par1[59].value = pval.toFixed(2);
par1[60].value = pval.toFixed(2);

par2[12].src = picy+".gif";
ddArr(ac);
location.href ="#cols";
}                                                                                                                                                                                                                                                           

function info1(){alert("Enter quantity when spec complete");}                                                                                                                                                                                                                                                              
// 
function complete()
{
par1[58].disabled = "false";
}

