function StreamContent(file,width,height)
{
var theurl = 'http://www.tribold.com/media/File/'
var str = '<object classid=\"CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6\" type=\"application/x-oleobject\" width=\"' + width + '\" height=\"' + height + '\" standby=\"Loading Windows Media Player components...\" id=\"MediaPlayer\"><param name=\"FileName\" value=\"'+ theurl + file + '.wmv\"><param name=\"ShowControls\" value=\"true\"><param name=\"ShowStatusBar\" value=\"true\"><param name=\"EnableContextMenu\" value=\"false\"><param name=\"ShowDisplay\" value=\"false\"><param name=\"autostart\" value=\"true\"><embed src=\"'+ theurl + file + '.wmv\" width=\"' + width + '\" height=\"' + height + '\" autostart=\"true\" type="application/x-mplayer2" name=\"MediaPlayer\" showcontrols=\"1\" showstatusbar=\"1\" showdisplay=\"0\" EnableContextMenu=\"0\"></embed></object><p>Double-click the above video to view full screen</p>';
document.write(str);
}


function AddFile(TheForm)
{

if(TheForm.new_file_id.selectedIndex >= 0)
{

lgth = TheForm.new_file_id.options.length;

if(lgth!=0&&TheForm.new_file_id.options[TheForm.new_file_id.selectedIndex].value!=0)
{
select_text=TheForm.new_file_id.options[TheForm.new_file_id.selectedIndex].text;
select_value=TheForm.new_file_id.options[TheForm.new_file_id.selectedIndex].value;


document.getElementById('chosen_files').innerHTML = document.getElementById('chosen_files').innerHTML + '<li><input type=\"checkbox\" name=\"file_id\" id=\"file_id'+ select_value +' \" value=\"'+ select_value + '\" checked=\"checked\" /><label for=\"file_id' + select_value + '\">' + select_text + '</label></li>';

TheForm.new_file_id.options[TheForm.new_file_id.selectedIndex] = null;

TheForm.new_file_id.options[lgth]
}
}

}



function checkregistration(passForm) { 
       if (trim(passForm.contact_first_name.value) ==""){
         alert("Please enter first name")
         passForm.contact_first_name.focus()
         return false
}
       if (trim(passForm.contact_last_name.value) ==""){
         alert("Please enter last name")
         passForm.contact_last_name.focus()
         return false
}
       if (trim(passForm.contact_email.value) ==""){
         alert("Please enter an e-mail address")
         passForm.contact_email.focus()
         return false
}
       if (trim(passForm.contact_job_title.value) ==""){
         alert("Please enter a job title")
         passForm.contact_job_title.focus()
         return false
}
       if (trim(passForm.contact_company.value) ==""){
         alert("Please enter a company name")
         passForm.contact_company.focus()
         return false
}

      return true
}

