
//add a date function================================
function makeArray() {
     for (yy = 0; yy<makeArray.arguments.length; yy++)
          this[yy + 1] = makeArray.arguments[yy];
}
function addDate() {
var months = new makeArray('January','February','March',
    'April','May','June','July','August','September',
    'October','November','December');

var date = new Date();
var day  = date.getDate();
var month = date.getMonth() + 1;
var yy = date.getYear();
var year = (yy < 1000) ? yy + 1900 : yy;

return document.write(months[month] + " " + day + ", " + year );
}
//end===============================================


function resetForm() {
	document.forms[0].reset()
}

function submitForm() {
	
	document.forms[0].submit("hello");
    
}


	function lbstokg(pounds) {
	weight = pounds * .45359237
	return weight

}

function ftToInch(feet) {
	cinches = feet * 12;
	return cinches
}

function inchesToCm (totalInches) {
	ctotalInches = totalInches * 2.54
	return ctotalInches
	}
function metresToCm (metres) {
	return metres * 100
}
function calculateHeight(feet, inches) {
	
		convertedInches = ftToInch(feet);
		totalInches = convertedInches + inches;
		
		return inchesToCm(totalInches);
}

function popUp(URL, w, h) {
	
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=1,width=" + w + ",height=" + h + ",left = 20,top = 50, screenx=20, screeny=20');");
}

function popUpNoScroll(URL, w, h) {
	
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=no,location=0,statusbar=0,menubar=0,resizable=1,width=" + w + ",height=" + h + ",left = 20,top = 50, screenx=20, screeny=20');");
}