var IE = document.all?true:false;

function GiveFalse() {
if(IE) {
event.returnValue = false;
}
return false;
}
function valbutton(thisform) {
var customString="AU ";
var temp = thisform.fibretype.selectedIndex;
var	selectBox = thisform.fibretype.options[temp].text;
if (selectBox=='Glass')
{
	customString+="G ";
}
else {
	customString+="P ";
} 
temp = thisform.lamptype.selectedIndex;
selectBox = thisform.lamptype.options[temp].text;
if (selectBox=='50W EXT')
{
	customString+="- 050 - ";
}
else if (selectBox=='75W EYF')
{
	customString+="- 075 - ";
}
else {
	customString+="- 100 - ";
}
temp = thisform.voltage.selectedIndex; 
selectBox = thisform.voltage.options[temp].text;
if (selectBox=='230V')
{
	customString+="E - ";
}
else if (selectBox=='24V')
{
	if (thisform.lamptype.selectedIndex==3)
	{
		alert("24V operation is only available on 50W, 75W and 100W lamps. Please reconfigure your selections.");
		customString+="E - "; 
		thisform.reset(); 
		customString="AU G - 050 - E - EXT - W - X - X - XX - X - X"; 
		document.getElementById('theString').innerHTML = "<strong>" + customString + "</strong>";
		return;
	}
	else
	{
 	customString+="I - ";
	}  
}
else
{
	if (thisform.lamptype.selectedIndex==3)
	{
		alert("12V operation is only available on 50W, 75W and 100W lamps. Please reconfigure your selections.");
		customString+="E - "; 
		thisform.reset(); 
		customString="AU G - 050 - E - EXT - W - X - X - XX - X - X"; 
		document.getElementById('theString').innerHTML = "<strong>" + customString + "</strong>";
		return;
	}
	else
	{
 	customString+="L - ";
	}  
}

if (thisform.lamptype.selectedIndex == 0)
{
	customString+="EXT - W- ";
}
else if (thisform.lamptype.selectedIndex == 1)
{
	customString+="EYF - W- ";
}
else if (thisform.lamptype.selectedIndex == 2)
{
	customString+="OSR - W- ";
} 
else {
	customString+="DDL - W- ";
}

temp = thisform.dimming.selectedIndex;
selectBox = thisform.dimming.options[temp].text;
if (selectBox=='None')
{
	customString+="X - X - ";
}
else if (selectBox=='Integral Manual Dimmer') 
	if (thisform.voltage.selectedIndex!=0)
		{
			alert("Integral Manual Dim option is only available on 240V units, please ammend your selections");	
			thisform.reset(); 
			customString="AU G - 050 - E - EXT - W - X - X - XX - X - X"; 
			document.getElementById('theString').innerHTML = "<strong>" + customString + "</strong>";
			return;
		}
	else
		{
			customString+="X - D - ";
		}
else {
	customString+="X - L - ";
}
temp = thisform.filter.selectedIndex;
selectBox = thisform.filter.options[temp].text;
if (selectBox=='None')
{
	customString+="XX - X - X";
}
else {
	customString+="FL - X - X";
} 

document.getElementById('theString').innerHTML = "<strong>" + customString + "</strong>";

} 

