menu_status = new Array(); 
function showHide(theid){
    if (document.getElementById) {
    var switch_id = document.getElementById(theid);

        if(menu_status[theid] != 'show') {
           switch_id.className = 'show';
           menu_status[theid] = 'show';
        }else{
           switch_id.className = 'hide';
           menu_status[theid] = 'hide';
        }
    }
}


function validatewordsearch(form){

//alert("keyword search...");
document.word_search.submit();
}

function submitbasketform(form){
//alert(" submitbasketform");
    var TestVar = form.txtqty.value;
//    alert ("You typed: " + TestVar);

//alert("add to basket...");
form.submit();
}


function validateSagepaySubmission(form){
if (!document.VSPForm.chkbox1.checked ) { alert("Please tick to accept our Terms & Conditions"); return false;}

return confirm("Order Complete?\n");

}


function NewWindow(mypage, myname, w, h, scroll,resize,loc,dir,stat) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resize+',location='+loc+',directories='+dir+',status='+stat+''
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
