function press_img(o, b, jpg){
	var s = o.src.replace("-a."+jpg, "");
	s = s.replace("."+jpg, "");
	o.src = (b ? s + "-a" : s) + "."+jpg;
}
function preview_img(id,srcimg) {
	oi=new Image(320,320);
	oi.src=srcimg;
	ii=document.getElementById(id);
	ii.src=oi.src;
}
function href_bg(ew,idw,clr,clr2) {
	if (ew==1) {
		document.getElementById(idw).style.backgroundColor='#'+clr;
	}
	else {
		document.getElementById(idw).style.backgroundColor='#'+clr2;
	}
}
function menubg(idw,clr) {
	document.getElementById(idw).style.backgroundColor='#'+clr;
}
function submitP(id) {
		xajax_show_cart_submit(xajax.getFormValues(id));
	return false;
}
function confirm_submit(url,t_s,text,id,newColor,newColor2) { 
	document.getElementById(id).style.backgroundColor = newColor;
	if (confirm(text)) {
		window.open(url,'_top');
	} 
	else {
		document.getElementById(id).style.backgroundColor = newColor2;
	}
}
function show_drag(id) { 	
	a = document.getElementById(id);
	if (a.style.display == 'block') {
		a.style.display = 'none';
	} 
	else {
		a.style.display = 'block';
	}
}
