function checkContactFields() {
		missinginfo = "";
		
		if ((document.contactform.cTitle[document.contactform.cTitle.selectedIndex].value == "")){
			missinginfo += "\n     -  Title";
		}

		if (document.forms['contactform'].cFName.value == "") {
			missinginfo += "\n     -  First Name";
		}

		if (document.forms['contactform'].cSName.value == "") {
			missinginfo += "\n     -  Surname";
		}

		if (document.forms['contactform'].cTel.value == "") {
			missinginfo += "\n     -  Telephone";
		}
	
		if ((document.forms['contactform'].cEmail.value == "") || 
			(document.forms['contactform'].cEmail.value.indexOf('@') == -1) || 
			(document.forms['contactform'].cEmail.value.indexOf('.') == -1)) {
			missinginfo += "\n     -  Email address";
		}

		if (missinginfo != "") {
			missinginfo ="___________________________________\n\n" +
			"You failed to correctly fill in your:\n" +
			missinginfo + "\n\n___________________________________" +
			"\nPlease check your details and submit again";
			alert(missinginfo);
			return false;
		}
		else return true;
	}			


function checkCallbackFields() {
		missinginfo = "";
		
		
		if ((document.forms['callback'].elements['callBackName'].value == "") || (document.forms['callback'].elements['callBackName'].value == "name")) {
			missinginfo += "\n     -  Name";
		}


		if ((document.forms['callback'].elements['callBackEmail'].value == "") || 
			(document.forms['callback'].elements['callBackEmail'].value.indexOf('@') == -1) || 
			(document.forms['callback'].elements['callBackEmail'].value.indexOf('.') == -1) || (document.forms['callback'].elements['callBackEmail'].value == "email")) {
			missinginfo += "\n     -  Valid email address";
		}

		if ((document.forms['callback'].elements['callBackTel'].value == "") || (document.forms['callback'].elements['callBackTel'].value == "tel/mobile")) {
			missinginfo += "\n     -  Telephone";
		}

		if (missinginfo != "") {
			missinginfo ="___________________________________\n\n" +
			"You failed to correctly fill in your:\n" +
			missinginfo + "\n\n___________________________________" +
			"\nPlease check your details and submit again";
			alert(missinginfo);
			return false;
		}
		else return true;
	}			


	function enlargeGalleryImage(image)	{
		document.getElementById('mainImage').innerHTML = '<img src="/public/gallery/large/' + image + '" class="galleryImage"/>';
	}
	
	function loadVideoClip(clipName)	{
		var videoString
		
		videoString = '<object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" ';
		videoString += 'standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="310" height="277" style="border:1px solid #CCCCCC;">'; 
		videoString += '<param name="fileName" value="http://www.illusionsroadshow.com/public/video/' + clipName + '"> ';
		videoString += '<param name="animationatStart" value="true"> ';
		videoString += '<param name="transparentatStart" value="true"> ';
		videoString += '<param name="autoStart" value="true"> ';
		videoString += '<param name="showControls" value="false">'; 
		videoString += '<param name="showStatusBar" value="true">'; 
		videoString += '<param name="Volume" value="-450"> ';
		videoString += '<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="mms://www.murtzonline.com/public/video/' + clipName + '" name="MediaPlayer1" width=310 height=277 autostart=1 showcontrols=1 volume=-450> ';
		videoString += '</object>';

		document.getElementById('video').innerHTML = videoString
		
		document.getElementById('video').focus();
	}
	
		function confirmDelete()	{
		var agree=confirm("Are you sure you wish to delete?");
		if (agree) {
			return true ;
		}
		else {
			return false ;
		}
	}				
