function fncFriendsOfLarson() {
	intModalWidth = 258;
	intWindowWidth = fncWindowWidth();
	intLeftOffset = intWindowWidth/2 - intModalWidth/2 - 90;
	mdlAssumptions=dhtmlmodal.open('boxAssumptions', 'div', 'modalalertdiv', 'Friends of Larson Boats', 'width=375px,height=200px,left='+ intLeftOffset + 'px,top=100px,resize=0,scrolling=0')
}

function fncWindowWidth() {
	var winW = 258
	if (parseInt(navigator.appVersion)>3) {
		if (navigator.appName=="Netscape") {
			winW = window.innerWidth;
		}
		if (navigator.appName.indexOf("Microsoft")!=-1) {
			winW = document.body.offsetWidth;
		}
	}
	return winW;
}

function fncWindowHeight() {
	var winH = 147;
	if (parseInt(navigator.appVersion)>3) {
		if (navigator.appName=="Netscape") {
			winH = window.innerHeight;
		}
		if (navigator.appName.indexOf("Microsoft")!=-1) {
			winH = document.body.offsetHeight;
		}
	}
	return winH;
}

function fncCloseFriends() {
	mdlAssumptions.hide();
	}

function fncSubmitFriends() {
	strName = document.getElementById('iName').value;
	strEmail = document.getElementById('iEmail').value;
	strMobile = document.getElementById('iMobile').value;
	url = "friends_process.asp?name=" + strName + "&email=" + strEmail + "&telephone=" + strMobile;
	strErrorStatus = makeRequest(url, "dFriendsFormContainer")
	if (strErrorStatus == 'error') {
		alert('error' + document.getElementById('drag-contentarea').style.height);
		document.getElementById('drag-contentarea').style.height = '250px';
	} else {
		document.contentarea.style.height = '150px';
		alert('noerror');
	}
}

