﻿// JScript File
function bskremove(product)
{
    //$(product).checked == true;
    document.getElementById(product).checked=true
    document.basket.submit();
}

function clearDefault(el) 
{
  if (el.defaultValue==el.value) el.value = "";
}

function showOther(str)
{
    c = document.getElementById("title_other");
    if(str =="Other")
    {
        c.style.display="block";
    }
    else
    {
        c.style.display="none";
    }
}

function openZoom(image,name) 
{
    var newWindow = window.open('','','scrollbars=yes,menubar=no,height=700,width=900,resizable=yes,toolbar=no,location=no,status=no');
    newWindow.document.write("<html><head><title>"+name+" Large Image</title></head><body><div align='center'><img src='../resize.asp?image=/store/stock/"+image+"&dim=1000'></div></body></html>");
    newWindow.document.close;
}

function popimage(spc,colour)
{
    var newwindow;
    newwindow=window.open("/"+spc+"/"+colour+"/imagezoom.html",'name123123awdawdawd123123','height=625,width=700,scrollbars=0,menubar=0,resizable=0,status=0');
	if (window.focus) {newwindow.focus()}
}


function navigate(where)
{
	var intndx;
	var strlink;

	if (where == "brand")
	{
		intndx = document.mainform.brand.selectedIndex;
    	strlink = document.mainform.brand.options[intndx].value;					
    }
	else if (where == "type")
	{
		intndx = document.typeform.type.selectedIndex;
		strlink = document.typeform.type.options[intndx].value;
	}

	if (strlink.length > 0 && strlink != "") 
	{
	    top.location.href = strlink; 
	}

}