function popUp(URL, width, height){
	var newWin = window.open(URL,"Popup", 'width=' + width + ',height=' + height + ',scrollbars=yes,left=1,top=1,resizable=yes');
	newWin.focus();
}

function goThere(loc){
	document.location.href = loc;
}


//Remove dishes from string--------------------------------------------
function strip(obj){
	if (obj.value.length != 0){
		var re = /[^0-9]/g;
		obj.value = obj.value.replace(re,"");
	}
}


// magic tab script-----------------------------------------------------
var maxSize = 0 ;
var rExp  =  /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/;
function inputTab(obj,len,nextElement) {
	if (obj.value.length != maxSize) {
		maxSize = obj.value.length;
		numTrue = rExp.test(obj.value);
		if ((maxSize == len) && (numTrue)) {
			nextElement.focus();
		}
	}
}

function stopError() {
  return true;
}

window.onerror = stopError;

