function insertPlayerWM6(elmID, src, height, width) {
var html;
html = "<object id='WinMedia' "
+ "classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' "
+ "codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' "
+ "width='" + width + "' height='" + height + "' "
+ "standby='Loading MultiMedia' "
+ "type='application/x-object'>"
+ "<param name='FileName' value='" + src + "' />"
+ "<param name='AutoStart' value='true' />"
+ "<param name='ShowControls' value='true' />"
+ "<param name='ShowAudioControls' value='true' />"
+ "<param name='ShowPositionControls' value='true' />"
+ "<param name='ShowStatusBar' value='true' />"
// Embed for Netscape type Browsers
+ "<embed type='application/x-mplayer2' "
+ "pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' "
+ "src='" + src + "' "
+ "name='WinMedia' "
+ "width='" + width + "' "
+ "height='" + height + "' "
+ "autostart='1' "
+ "ShowControls='1' "
+ "ShowAudioControls='1' "
+ "ShowPositionControls='1' "
+ "ShowStatusBar='1'>"
+ "</object>";
if (document.getElementById(elmID) != null) document.getElementById(elmID).innerHTML = html;
}
function insertPlayerWM7(elmID, src, height, width) 
{
var html;
html = "<object ID='WinMedia' width='" + width + "' height='" + height + "' "
+ "CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' "
+ "standby='Loading MultiMedia' "
+ "type='application/x-oleobject'> "
+ "<param name='URL' value='" + src + "' /> "
+ "<param name='AutoStart' value='true' /> "
+ "<param name='ShowControls' value='true' /> "
+ "<param name='ShowAudioControls' value='true' /> "
+ "<param name='ShowPositionControls' value='false' /> "
+ "<param name='uiMode' value='full' /> "

// Embed for Netscape type Browsers
+ "<embed type='application/x-mplayer2' "
+ "pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' "
+ "src='" + src + "' "
+ "name='WinMedia' "
+ "width='" + width + "' "
+ "height='" + height + "' "
+ "autostart='1' "
+ "ShowControls='1' "
+ "ShowAudioControls='1' "
+ "ShowPositionControls='1' "
+ "ShowStatusBar='1'>"
+ "</object>";


if (document.getElementById(elmID) != null) document.getElementById(elmID).innerHTML = html;
}
function insertPlayerShockwave(elmID, src, height, width, adID) {
var html;
html = "<OBJECT CLASSID='clsid:166B1BCA-3F9C-11CF-8075-444553540000' "
+ "CODEBASE='http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,0,0' "
+ "ID=" + adID + " WIDTH='" + width + "' HEIGHT='" + height + "' "
+ "STANDBY='Loading MultiMedia' "
+ "TYPE='application/x-object'>"
+ "<PARAM NAME='movie' VALUE='" + src + "'> "
+ "<PARAM NAME='play' VALUE='false'> "
+ "<PARAM NAME='quality' VALUE='high'> "
+ "<EMBED SRC='" + src + "' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/' WIDTH='" + width + "' HEIGHT='" + height + "'></embed>"
+ "</OBJECT>";
document.getElementById(elmID).innerHTML = html;
}
function insertPlayerFlash(elmID, src, height, width, adID) {
var html;
html = "<OBJECT CLASSID='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' "
+ "CODEBASE='http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0' "
+ "ID=" + adID + " WIDTH='" + width + "' HEIGHT='" + height + "' "
+ "STANDBY='Loading MultiMedia' "
+ "TYPE='application/x-object'>"
+ "<PARAM NAME='movie' VALUE='" + src + "'> "
+ "<PARAM NAME='play' VALUE='false'> "
+ "<PARAM NAME='quality' VALUE='high'> "
+ "<EMBED SRC='" + src + "' PLUGINSPAGE='http://www.macromedia.com/flash/download/' WIDTH='" + width + "' HEIGHT='" + height + "'></EMBED>"
+ "</OBJECT>";
document.getElementById(elmID).innerHTML = html;
}
function insertAdFlash(elmID, src, height, width, adID) {
var html;
html = "<OBJECT CLASSID='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' "
+ "CODEBASE='http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0' "
+ "ID=" + adID + " WIDTH='" + width + "' HEIGHT='" + height + "' "
+ "STANDBY='Loading MultiMedia' "
+ "TYPE='application/x-object'>"
+ "<PARAM NAME='movie' VALUE='" + src + "'> "
+ "<PARAM NAME='play' VALUE='true'> "
+ "<PARAM NAME='quality' VALUE='high'> "
+ "<EMBED SRC='" + src + "' PLUGINSPAGE='http://www.macromedia.com/flash/download/' WIDTH='" + width + "' HEIGHT='" + height + "'></EMBED>"
+ "</OBJECT>";
document.getElementById(elmID).innerHTML = html;
}

function CheckBoxValidatorEvaluateIsValid(val)
{
var control = document.getElementById(val.controltovalidate);
var mustBeChecked = Boolean(val.mustBeChecked);
return control.checked == mustBeChecked;
}

function CheckBoxListValidatorEvaluateIsValid(val)
{
var control = document.getElementById(val.controltovalidate);
var minimumNumberOfSelectedCheckBoxes = parseInt(val.minimumNumberOfSelectedCheckBoxes);
var selectedItemCount = 0;
var liIndex = 0;
var currentListItem = document.getElementById(control.id + '_' + liIndex.toString());
while (currentListItem != null)
{
if (currentListItem.checked) selectedItemCount++;
liIndex++;
currentListItem = document.getElementById(control.id + '_' + liIndex.toString());
}

return selectedItemCount >= minimumNumberOfSelectedCheckBoxes;
}






