function press_img1(o,jpg) {
	o.src=o.src.replace("-a."+jpg,"").replace("."+jpg,"")+"-b"+"."+jpg;
}
function press_img2(o,jpg) {
	o.src=o.src.replace("-b."+jpg,"").replace("."+jpg,"")+"-a"+"."+jpg;
}
function press_im(o,jpg,jpg1) {
	o.src=o.src.replace(jpg,jpg1);
}
function replace_img(id,jpg,width,height) {
	oi=new Image(width,height);
	oi.src=jpg;
	ii=document.getElementById(id);
	ii.src=oi.src;
}

function press_img(o, b, jpg) {
	var s=o.src.replace("-a."+jpg,"");
	sx=s.replace("."+jpg,"");
	o.src=(b?sx+"-a":sx)+"."+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;
	}
}
