function loadVideo(movieName,width,height){
	var movieArea = document.getElementById('presentationArea');
	var videoString = "<embed src='" + movieName + "' autostart='true' height='" + height + "' width='" + width + "' />";
	
	movieArea.innerHTML = videoString;
}
function loadFlashMovie(movieName,width,height){
	var movieArea = document.getElementById('presentationArea');
	
	flashString = "<object classid='clsid:D27CDB6E-AE6D-11CF-96B8-444553540000' id='obj1' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0' border='0' width='" + width + "' height='" + height +"'><param name='movie' value='" + movieName + "'><param name='wmode' value='transparent'><PARAM NAME='scale' VALUE='exactfit'><param name='quality' value='High'><embed src='" + movieName + "'pluginspage='http://www.macromedia.com/go/getflashplayer' scale='exactfit' wmode='transparent' type='application/x-shockwave-flash' name='home' width='" + width + "' height='" + height +"'></object>";
	movieArea.innerHTML = flashString;
}
function iframeVideo(movieName,width,height){
	var movieArea = document.getElementById('presentationArea');
	var videoString = "<iframe src='" + movieName + "' height='" + height + "' width='" + width + "' scrolling='no' style='border:1px solid #666'></iframe>";
	
	movieArea.innerHTML = videoString;
}
function openVideoWindow(location,width,height){
	param_string = 'resizable=yes, scrollbars=no, width=' + width + ',height=' + height + ', status=no, toolbar=no'
 window.open(location, 'appWin',param_string);
}
function openWin(url, w, h)
{
var winprop = "width=" + w + ",height=" + h;
openwin = window.open(url,'',winprop);
}

function openHelp(helpTable){
		document.getElementById(helpTable).style.visibility = 'visible';
		document.getElementById(helpTable).style.position = 'relative';
	}
	function closeHelp(helpTable){
		document.getElementById(helpTable).style.visibility = 'hidden';
		document.getElementById(helpTable).style.position = 'absolute';
	}
	function updateForm(fieldName,indexNumber,fieldUpdateName){
		document.forms[1].elements[fieldUpdateName].value = document.forms[1].elements[fieldName].options[indexNumber].text;
	}

function goLocation( thisFormSelect ){
  var thisSelection = thisFormSelect.options[thisFormSelect.selectedIndex].value;
  if (thisSelection != "") {
	 location = thisSelection;
  }
}

function setCompare(checkbox,itemNumRow,itemNumRowSub,itemNumRowCompare){
	if(checkbox.checked){
		document.getElementById(itemNumRow).className='comparing';
		document.getElementById(itemNumRowSub).className='comparing';
		document.getElementById(itemNumRowCompare).innerHTML='<a href="#Compare" onclick="document.forms[\'Comparison\'].submit();">Compare</a>';
	}
	else{
		document.getElementById(itemNumRow).className='compareinactive';
		document.getElementById(itemNumRowSub).className='compareinactive';
		document.getElementById(itemNumRowCompare).innerHTML="Compare";
	}
}