<!--
var __popupwin=0;
function popup(URL,w,h) 
{
 	var l = (screen.availWidth) ? (screen.availWidth-w)/2 : (screen.width) ? (screen.width-w)/2 : 0 ;
	var t = (screen.availHeight) ? (screen.availHeight-h)/2 : (screen.height) ? (screen.height-h)/2 : 0 ;
	settings = 'height='+h+',width='+w+',top='+t+',left='+l+',scrollbars=no,resizable=no' ;
	if (w > screen.width || h > screen.height) 
	{
		w=screen.width-80 ; h=screen.height-80 ;
		settings = 'height='+h+',width='+w+',top=10,left=10,scrollbars=yes,resizable=yes' ;  
	}
	if(__popupwin&&!__popupwin.closed)__popupwin.close()
	__popupwin = window.open(URL,'popup',settings)	
}

function popscroll(URL,w,h) 
{
 	var l = (screen.availWidth) ? (screen.availWidth-w)/2 : (screen.width) ? (screen.width-w)/2 : 0 ;
	var t = (screen.availHeight) ? (screen.availHeight-h)/2 : (screen.height) ? (screen.height-h)/2 : 0 ;
	settings = 'height='+h+',width='+w+',top='+t+',left='+l+',scrollbars=yes,resizable=no' ;
	if (w > screen.width || h > screen.height) 
	{
		w=screen.width-80 ; h=screen.height-80 ;
		settings = 'height='+h+',width='+w+',top=10,left=10,scrollbars=yes,resizable=yes' ;  
	}
	if(__popupwin&&!__popupwin.closed)__popupwin.close()
	__popupwin = window.open(URL,'popup',settings)	
}

function ColourRoll(src, state, pageID, changecolour) 
{ 
	//document.write( + ' = ' + src.id) ;
	//document.write( + ' = ' + pageID) ;
	//if
 
	if (state == 'menuON' && pageID != src.getAttribute("id"))
		 {
		 src.style.backgroundColor= changecolour;
		 //src.style.color= changecolour;
		 }
	if (state == 'menuOFF' && pageID != src.getAttribute("id"))
		 {
		 src.style.backgroundColor= changecolour;
		 //src.style.color= changecolour;
		 } 
	if (state == 'menuSELECT' && pageID)
		 {
		 src.style.backgroundColor= changecolour;
		 src.style.border= "1px solid #CCCCCC;"
		 //src.style.color= changecolour;
		 }
}

function setOption(obj,index) 
{
  document.orderForm.elements[obj].selectedIndex = index 
}

function popImageIn (path)
{
var img = document.mform.oFabric.options[document.mform.oFabric.options.selectedIndex].value ;
//if (img.IndexOf("blank") < 0) {

if (img != '') {popImage(path + img, "Isle of Mull Weavers")};
//}
//alert (path + img);
//}
}

function setCW(str)
{
alert(str) ;
document.mform.elements[2].value="99" ;
}
//-->
