function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function checkform1(which) {
var pass=true;

if (document.images) {

for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name =="ramp1") {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
alert("Please Select Ramp Size");
return false;
break;
}}}
}
return true;
}

function checkform2(which) {
var pass=true;

if (document.images) {

for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name =="ramp2") {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
alert("Please Select Ramp Size");
return false;
break;
}}}
}
return true;
}

function checkform3(which) {
var pass=true;

if (document.images) {

for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name =="ramp3") {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
alert("Please Select Ramp Size");
return false;
break;
}}}
}
return true;
}

function addtobasket1()
{

if (document.ramps1.ramp1.value !="none")
{
var mySplitResult = document.ramps1.ramp1.value.split("|");
desc=mySplitResult[0] + "ft x " + mySplitResult[3];
price= mySplitResult[1];
del=mySplitResult[2];
buyItem2( ""+ desc, price, 0, del,"{3~1000~"+price+"~0}{1~2~"+price+"~0}",1);
}
}

function addtobasket2()
{
if (document.ramps2.ramp2.value !="none")
{
var mySplitResult = document.ramps2.ramp2.value.split("|");
desc=mySplitResult[0] + "ft x " + mySplitResult[3];
price= mySplitResult[1];
del=mySplitResult[2];
buyItem2( ""+ desc, price, 0, del,"{3~1000~"+price+"~0}{1~2~"+price+"~0}",1);
}
}

function addtobasket3()
{
if (document.ramps3.ramp3.value !="none")
{
var mySplitResult = document.ramps3.ramp3.value.split("|");
desc=mySplitResult[0] + "ft x " + mySplitResult[3];
price= mySplitResult[1];
del=mySplitResult[2];
buyItem2( ""+ desc, price, 0, del,"{3~1000~"+price+"~0}{1~2~"+price+"~0}",1);
}
}

function addtobasket4()
{
var mySplitResult = document.ramps4.ramp4.value.split("|");
desc=mySplitResult[0] + "ft x " + mySplitResult[3];
price= mySplitResult[1];
del=mySplitResult[2];
buyItem2( "Platform (inc. £300 Deposit)", 695, 0, 40,"{3~1000~"+695+"~0}{1~2~"+695+"~0}",1);
}


