// JavaScript Document
function open_window(url) {
	window.open(url, 'new_window', 'width=800,height=600,menubar=yes,resizable=yes,scrollbars=yes');
}

function display_photo(url) {
	xmax = screen.width;
	ymax = screen.height;
	x = (xmax-640)/2;
	y = (ymax-480)/2.5
	features = "toolbar=0,location=0,directories=0,scrollbars=0,resizable=0,status=0,menubar=0,width=400,height=400,left="+x+",top="+y+",screenX="+x+",screenY="+y;	
	window.open(url, 'photo', features);
}

function CheckRequiredFields() {
	var errormessage = new String();
	
	// Put field checks below this point.

	if(WithoutContent(document.mkmform.firstname.value))
	{ 	errormessage += "\nPlease type your first name."; 
	}
	if(WithoutContent(document.mkmform.lastname.value))
	{ 	errormessage += "\nPlease type your last name."; 
	}	
	if(WithoutContent(document.mkmform.email.value))
	{ 	errormessage += "\nPlease type your e-mail."; 
	}

	// Put field checks above this point.
	if(errormessage.length > 2) {
		alert('NOTE:' + errormessage);
		return false;
	}
//		alert(' Thank You for your interest. \n\n A Thinnox counselor \nwill contact you shortly. ');	
} // end of function CheckRequiredFields()


function WithoutContent(ss) {
	if(ss.length > 0) { return false; }
	return true;
}


function display_window(url, width, height) {
	xmax = screen.width;
	ymax = screen.height;
	x = (xmax-width)/2;
	y = (ymax-height)/2.5
	features = "toolbar=0,location=0,directories=0,scrollbars=0,resizable=0,status=0,menubar=0,width="+width+",height="+height+",left="+x+",top="+y+",screenX="+x+",screenY="+y;	
	window.open(url, 'audio', features);
}