function redirect(page)
{window.location.href=page}
function open_window(page,params)
{window.open(page,"popup",params)}
function detect_flash_redirect(redirect_page)
{if(!document.flashDetected)
{redirect(redirect_page)}}
function swap_image(mainID,photo,photoProvidedByID,photoProvidedBy,photoProvidedByContainerID)
{var img_main=document.getElementById(mainID);img_main.src=photo;var photoProvidedByContainer=document.getElementById(photoProvidedByContainerID);var photoProvidedByLabel=document.getElementById(photoProvidedByID);if(photoProvidedByLabel){if(photoProvidedBy!=''){photoProvidedByLabel.innerHTML=photoProvidedBy;photoProvidedByContainer.style.display='block';}else{photoProvidedByLabel.innerHTML='';photoProvidedByContainer.style.display='none';}}}
function highlight_border(cell)
{var cell=document.getElementById(cell);cell.style.border="solid 1px #cccccc";}
function unhighlight_border(cell)
{var cell=document.getElementById(cell);cell.style.border="solid 1px #ffffff";}
function IsNumeric(sText)
{var ValidChars="0123456789.";var IsNumber=true;var Char;for(i=0;i<sText.length&&IsNumber==true;i++)
{Char=sText.charAt(i);if(ValidChars.indexOf(Char)==-1)
{IsNumber=false;}}
return IsNumber;}
function findPos(obj){var curleft=curtop=0;if(obj.offsetParent){curleft=obj.offsetLeft
curtop=obj.offsetTop
while(obj=obj.offsetParent){curleft+=obj.offsetLeft
curtop+=obj.offsetTop}}
return[curleft,curtop];}
