function checkdel()
{
	var errmsg='';
	
	if  ((document.addressinfo.BillingAddress.value=='') || (document.addressinfo.BillingAddress.value.length<4) || (document.addressinfo.DeliveryAddress.value=='') || (document.addressinfo.DeliveryAddress.value.length<4))
	{
		errmsg='\n You need to complete your billing and delivery addresses.';
	}
	
	if  ((document.addressinfo.BillingTown.value=='') || (document.addressinfo.BillingTown.value.length<4) || (document.addressinfo.DeliveryTown.value=='') || (document.addressinfo.DeliveryTown.value.length<4))
	{
		errmsg='\n You need to complete your billing and delivery addresses.';
	}
	

	if  ((document.addressinfo.BillingPostCode.value=='') || (document.addressinfo.BillingPostCode.value.length<4) || (document.addressinfo.DeliveryPostCode.value=='') || (document.addressinfo.DeliveryPostCode.value.length<4))
	{
		errmsg='\n You need to complete your billing and delivery addresses.';
	}
	
	if  ((document.addressinfo.BillingFirstName.value=='') || (document.addressinfo.BillingFirstName.value.length<2) || (document.addressinfo.DeliveryFirstName.value=='') || (document.addressinfo.DeliveryFirstName.value.length<3) || (document.addressinfo.BillingSurname.value=='') || (document.addressinfo.BillingSurname.value.length<3) || (document.addressinfo.DeliverySurname.value=='') || (document.addressinfo.DeliverySurname.value.length<3))
	{
		errmsg+='\n Please enter your full name for both the billing and delivery details.';
	}
	
	if  ((document.addressinfo.BillingEmail.value=='') || (document.addressinfo.BillingEmail.value.length<8) )
	{
		errmsg+='\nPlease enter your billing email address so we can send your order confirmation.';
	}
	
	if  ((document.addressinfo.BillingPhone.value=='') || (document.addressinfo.BillingPhone.value.length<7) )
	{
		errmsg+='\nPlease enter your telephone number correctly.';
	}
	
	if (errmsg!='')
	{
		alert(errmsg+'\nThank you!\n');
		return false;
	}
	
	document.addressinfo.submit();
}

	
function zoomWindow(imagefile)
{

	var biggerview = window.open('/Products/Detail/zoom.asp?imagefile='+imagefile,'LargerView','width='+eval(screen.width-100)+',height='+eval(screen.height-200)+',top=' + eval((screen.height-(screen.height-200))/2) +',left='+eval((screen.width-(screen.width-100))/2)+',location=no,toolbar=no,resizable=no,menubar=no');
	

}

function swapSKU(SKU,imgf)
{
	document.orderform.SKU.value=SKU;
	document.mainimage.src='/ProductPhotos/standard/'+imgf;
	//alert(imgf);
	document.getElementById('zoomlink').href='/ProductPhotos/large/'+imgf;
	document.getElementById('zoombutton').href='/ProductPhotos/large/'+imgf;
}

function zoomer()
{
	var newURL = document.getElementById('zoomlink').href + "#TB_inline?height=200&width=300&inlineId=hiddenModalContentID"; 

        tb_show("Detailed View", newURL); 

}

function swapfillerSKU(SKU)
{
	document.orderform.SKU.value=SKU;
//	document.mainimage.src='/ProductPhotos/standard/'+SKU+'.jpg';
	
}

/***********************************************
* AnyLink Vertical Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="/Browse/ByPrice/Under25/">Under &pound;25</a>'
menu1[1]='<a href="/Browse/ByPrice/2540/">&pound;25 to &pound;40</a>'
menu1[2]='<a href="/Browse/ByPrice/4060/">&pound;40 to &pound;60</a>'
menu1[3]='<a href="/Browse/ByPrice/Over60/">Over &pound;60</a>'


//menu1[0]='<a href="/Browse/ByColour/Reds">Reds</a>'
//menu1[1]='<a href="/Browse/ByColour/Greens">Greens</a>'
//menu1[2]='<a href="/Browse/ByColour/Blues">Blues</a>'
//menu1[3]='<a href="/Browse/ByColour/Neutrals">Neutrals</a>'
//menu1[4]='<a href="/Browse/ByColour/Earth Tones">Earth Tones</a>'
//menu1[5]='<a href="/Browse/ByColour/Metallics">Metallics</a>'

var menu2=new Array()
menu2[0]='<a href="/Browse/BySize/default.asp?size=0">30x30cm</a>'
menu2[1]='<a href="/Browse/BySize/default.asp?size=1">35x35cm</a>'
menu2[2]='<a href="/Browse/BySize/default.asp?size=2">40x40cm</a>'
menu2[3]='<a href="/Browse/BySize/default.asp?size=3">45x45cm</a>'
menu2[4]='<a href="/Browse/BySize/default.asp?size=4">50x30cm</a>'
menu2[5]='<a href="/Browse/BySize/default.asp?size=5">50x50cm</a>'
menu2[6]='<a href="/Browse/BySize/default.asp?size=6">60x30cm</a>'
menu2[7]='<a href="/Browse/BySize/default.asp?size=7">60x40cm</a>'
menu2[8]='<a href="/Browse/BySize/default.asp?size=8">60x60cm</a>'


var menu3=new Array()


//menu3[0]='<a href="/Browse/ByDesigner/default.asp?designerid=-31992">Clare Nicolson</a>'
//menu3[1]='<a href="/Browse/ByDesigner/default.asp?designerid=-31991">Clarissa Hulse</a>'

menu3[0]='<a href="/Browse/ByDesigner/default.asp?designerid=-31924">Anorak</a>'
menu3[1]='<a href="/Browse/ByDesigner/default.asp?designerid=-31987">Jan Constantine</a>'
menu3[2]='<a href="/Browse/ByDesigner/default.asp?designerid=-31966">Thornback and Peel</a>'
menu3[3]='<a href="/Browse/ByDesigner/default.asp?designerid=-31936">Donna Wilson</a>'
menu3[4]='<a href="/Browse/ByDesigner/default.asp?designerid=-31932">People Will Always Need Plates</a>'
menu3[5]='<a href="/Browse/ByDesigner/default.asp?designerid=-31926">Niki Jones</a>'
menu3[6]='<a href="/Browse/ByDesigner/default.asp?designerid=-31920">Barbara Coupe</a>'
menu3[7]='<a href="/Browse/ByDesigner/default.asp?designerid=-31941">Retreat Home</a>'
menu3[8]='<a href="/Browse/ByDesigner/default.asp?designerid=-31922">Silver Service</a>'
menu3[9]='<a href="/Browse/ByDesigner/default.asp?designerid=-31938">East of India</a>'


var menu4=new Array()

menu4[0]='<a href="/Browse/Material/default.asp?materialid=-31979">Cottons</a>'
menu4[1]='<a href="/Browse/Material/default.asp?materialid=-31952">Brass and Nickel</a>'
menu4[2]='<a href="/Browse/Material/default.asp?materialid=-31978">Linen</a>'
menu4[3]='<a href="/Browse/Material/default.asp?materialid=-31965">Manmade Mix</a>'
menu4[4]='<a href="/Browse/Material/default.asp?materialid=-31950">Organic Cotton</a>'
menu4[5]='<a href="/Browse/Material/default.asp?materialid=-31980">Silk</a>'
menu4[6]='<a href="/Browse/Material/default.asp?materialid=-31949">Porcelain</a>'
menu4[7]='<a href="/Browse/Material/default.asp?materialid=-31970">Wool</a>'
menu4[8]='<a href="/Browse/Material/default.asp?materialid=-31971">Velvet</a>'


var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=2 //horizontal offset of menu from default location. (0-5 is a good value)

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width: 160px; z-index:4000;" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x-obj.offsetWidth < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}