function NewWindow(mypage, myname, w, h, scroll, size) 
	{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',toolbar=0,scrollbars='+scroll+',dependent=NO,location=0,statusbar=0,menubar=0,resizable='+size+''
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	}

function NewerWindow(myform, windowname, w, h, scroll, size)
	{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',toolbar=0,scrollbars='+scroll+',dependent=YES,location=0,status=YES,menubar=0,resizable='+size+''
	if (! window.focus)return true;
	window.open('', windowname, winprops);
	myform.target=windowname;
	return true;
	}

//onkeypress
function noenter(e) 
	{
	var key;
	if(window.event) key = window.event.keyCode;     //IE
	else key = e.which;     //firefox & netscape
	if (key == 13) return false;
	}

//OnBlur
function checkforsillybuggers(object) 
	{
	var quantity = object.value;
	if (((quantity / quantity != 1) && (quantity != 0)) || (quantity < 0))
		{
		alert('Please enter only positive numbers here');
		object.value = '0';
		return false;
		}
	}

