
var rootUrl = 'http://localhost:51492';

function writeFlash(id) {
    var source = "<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='800' height='242'><param name='movie' value='" + rootUrl + "/flash/hilligers.swf'><param name='quality' value='high'><param name='wmode' value='transparent'><embed src='" + rootUrl + "/flash/hilligers.swf' quality='high' wmode='transparent' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='800' height='242'></embed></object>";
    document.getElementById(id).innerHTML = source;
} 

function launchWindow(url, width, height){
	var centerX=(screen.width-width)/2; 
	var centerY=(screen.height-height)/2;
	return window.open(url , 'centerWin', 'resizable=yes,scrollbars=no,top='+centerY+',screenY='+centerY+',left='+centerX+',screenX='+centerX+',height=' + height + ',width=' + width + '');
}

function popupwindow(url)
{
 
window.open(url, "popupwindow", "width=500,height=350,toolbar=no,location=no,directories=no,status=no,menubar=no, scrollbars=no,resizable=yes,copyhistory=no")
}


function TermsCheck(f)
{
if (document.forms[0].cbTerms.checked == false)
{
	alert('Please accept the Terms and Conditions to continue.');
	return false;
}
	else
		return true;
}

function AllowNumericOnly(objEvent) 
{
  var iKeyCode;       
  iKeyCode = objEvent.keyCode;               
  if(iKeyCode>=48 && iKeyCode<=57) 
  {
		return true;
  }
  else
  {
		return false;
  }
}

function CellCheck(tb)
{
	if(tb.value.length == '2')
	{
		if(tb.value != 27)
		{
			tb.value = '';
			alert('Invalid cellphone number. Correct format is 27832557111.');
		}
	}
}

function UnCheck(val)
{
	for (i=0; i < document.forms[0].elements.length; i++) 
	{
		if ((document.forms[0].elements[i].type == 'checkbox') && (document.forms[0].elements[i].name.indexOf(val) > -1)) 
		{
			document.forms[0].elements[i].checked = false;
		}
	}
}

function getconfirm(){ 
	if (confirm("Are you sure you want to delete this record?")==true) 
		return true; 
	else 
		return false; 
}

function launchWindow(url, width, height){
	var centerX=(screen.width-width)/2; 
	var centerY=(screen.height-height)/2;
	return window.open(url , 'centerWin', 'scrollbars=yes,top='+centerY+',screenY='+centerY+',left='+centerX+',screenX='+centerX+',height=' + height + ',width=' + width + '');
}
function AllowNumericOnly(objEvent) 
{
  var iKeyCode;       
  iKeyCode = objEvent.keyCode;               
  if(iKeyCode>=48 && iKeyCode<=57) 
  {
  return true;
  }
  else
  {
  return false;
  }
}
<td width="100%" align="left">
          <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td align="center" valign="top">
                <div style="height:239px;vertical-align:top;" id="flash_container"></div>
							  <script language="javascript">
							   writeFlash('flash_container');
							  </script>
              </td>
            </tr>
          </table>
          </td>
