function checkform(form) {
		var msg = '';
		if (form.name.value=='') { msg+='\nYour Name'; }
		if (form.company.value=='') { msg+='\nYour Company'; }
		if ((form.email.value=='') || (!checkemail(form.email.value))) { msg+='\nYour Email'; }
		if (form.message.value=='') { msg+='\nYour Message'; }
		if (msg!='') {
				alert('Please check the following:'+msg);
				return false;
		}
		return true;
}

function checkemail(email) {
	var exclude=/[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/;
	var check=/@[\w\-]+\./;
	var checkend=/\.[a-zA-Z]{2,6}$/;
	if (((email.search(exclude) != -1) || (email.search(check)) == -1) || (email.search(checkend) == -1)) {
		return false;
	} else {
		return true;
	}
}

function addFlash(media,width,height,classname) {
	var output = "";
	if (stylesEnabled()) {
		//addflash
		output += '<span class="' + classname + '">';
		output += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + width + '" height="' + height + '">';
		output += '<param name="movie" value="' + media + '">';
		output += '<param name="quality" value="high">';
		output += '<embed src="' + media + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>';
		output += '</object>';
		output += '</span>';
	}
	document.getElementById('right').innerHTML=output
}

function stylesEnabled() {
	//check if styles are in use
	var el = document.getElementById('title');
	if (el.currentStyle) {
		var ta = el.currentStyle['backgroundRepeat'];
	} else if (document.defaultView.getComputedStyle) {
		var ta = document.defaultView.getComputedStyle(el,null).getPropertyValue('background-repeat');
	}
	if (ta=="no-repeat") {
		return true;
	}
	return false;
}