function NewWindow(urlToOpen,width)
{
	var NewWindow = window.open(urlToOpen,'','scrollbars=yes,menubar=no,height=600,width='+width+',resizable=yes,toolbar=no,location=no,status=no');
}

function NewWindowSm(urlToOpen,width)
{
	var NewWindow = window.open(urlToOpen,'','scrollbars=yes,menubar=no,height=200,width='+width+',resizable=yes,toolbar=no,location=no,status=no');
}

function Validate()
{
	if(document.FileUpload.userfile.value.lastIndexOf('.jpg')==-1) {
   alert('Please upload only .jpg extention file');
   return false;
	}
}

function ConfDelCheckout(url,cid) {
	if(window.confirm("Are you sure you want to delete that checkout method?")) {
		location.replace(url + 'backoffice/checkout/prc-checkout.php?action=RC&c=' + cid)
	}
	else {
		alert("The checkout method has not been removed.");
	}
}
