
function changeImg(id) {
   document.getElementById("IMG1").src = "/images/products/"+imgs[id];
   toDisplay = "/images/products/"+limgs[id];
   for(i=0;i<num_pimgs;i++){
    if(i == id)
   		document.getElementById("list_"+id).src = "/images/interface/retro-1.gif";
	else
		document.getElementById("list_"+i).src = "/images/interface/retro-0.gif";
   }
}

function changeCol(id) {
	for(i=0;i<num_colours;i++){
    if(i == id){
   		document.getElementById("col_link_"+i).style.backgroundColor = "#FD5113";
		document.getElementById("col_"+i).checked=true;
	}else{
		document.getElementById("col_link_"+i).style.backgroundColor = "#ffffff";
		document.getElementById("col_"+i).checked=false;
	}
   }

   	return(false);
}
var mywindow;
function spawnwindow(url, name)
{
	mywindow=window.open(url,name);
	if (window.focus) {mywindow.focus()}
}
function enlarge() {
	spawnwindow(toDisplay,'PopBoutique');
}
function showNotify() {
	if (notify) {
		document.getElementById('notifyme').style.display = 'none';
		notify = false;
	} else {
		document.getElementById('notifyme').style.display = 'block';
		document.getElementById('notifyemail').value = 'your email address';
		notify = true;	
	}
	
	return false;
}
function clearNotifyEmail(input) {
	if (input.value == 'your email address') {
		input.value = '';
	}
}

function popup_window(url,w,h) {
 var width=w;
 var height=h;
 var from_top=300;
 var from_left=400;
 var toolbar='no';
 var location='no';
 var directories='no';
 var status='no';
 var menubar='no';
 var scrollbars='yes';
 var resizable='yes';
 var atts='width='+width+'show,height='+height+',top='+from_top+',screenY=';
 atts+= from_top+',left='+from_left+',screenX='+from_left+',toolbar='+toolbar;
 atts+=',location='+location+',directories='+directories+',status='+status;
 atts+=',menubar='+menubar+',scrollbars='+scrollbars+',resizable='+resizable;
 window.open(url,'win_name',atts);
}
