function ajaxConnect()
{var xmlHttp;try
{xmlHttp=new XMLHttpRequest();}
catch(e)
{try
{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e)
{alert("Your browser does not support AJAX!");return false;}}}
return xmlHttp;}
function CheckAll(Frm,ctlName)
{for(var i=0;i<Frm.elements.length;i++)
{var e=Frm.elements[i];if(e.type=='checkbox')
e.checked='checked';}}
function SetColor($element,$type,$move){var $element=document.getElementById($element);if($type=='over')
$element.style.backgroundColor='#EFD6D1';if($type=='out'&&$move=='GridContent2')
$element.style.backgroundColor='#ebecee';if($type=='out'&&$move=='GridContent1')
$element.style.backgroundColor='#f9f9f9';}
function starOver(id,objid){var name;for(i=1;i<=id;i++){name='star'+i+objid;document.getElementById(name).src='images/mini/yrStar.gif';}}
function starOut(id,objid){var name;for(i=1;i<=id;i++){name='star'+i+objid;document.getElementById(name).src='images/mini/crayStar.gif';}}
function starFullOut(rate,objid){var name;for(i=1;i<=5;i++){name='star'+i+objid;if(i<=rate)
document.getElementById(name).src='images/mini/yrStar.gif';else
document.getElementById(name).src='images/mini/crayStar.gif';}}
function setFocus(name){document.getElementById(name).select();document.getElementById(name).focus();}
function doConfirm(msg,url)
{if(url!='')
{var check=confirm(msg);if(check)
{window.location=url;}
return false;}
return false;}
var fadeOpacity=new Array();var fadeTimer=new Array();var fadeInterval=100;function fade(o,d)
{var obj=document.getElementById(o);if((fadeTimer[o])||(d&&obj.style.display!='block')||(!d&&obj.style.display=='block'))
{if(fadeTimer[o])
clearInterval(fadeTimer[o]);else
if(d)fadeOpacity[o]=0;else fadeOpacity[o]=9;obj.style.opacity="."+fadeOpacity[o].toString();obj.style.filter="alpha(opacity="+fadeOpacity[o].toString()+"0)";if(d)
{obj.style.display='block';fadeTimer[o]=setInterval('fadeAnimation("'+o+'",1);',fadeInterval);}
else
fadeTimer[o]=setInterval('fadeAnimation("'+o+'",-1);',fadeInterval);}}
function fadeAnimation(o,i)
{var obj=document.getElementById(o);fadeOpacity[o]+=i;obj.style.opacity="."+fadeOpacity[o].toString();obj.style.filter="alpha(opacity="+fadeOpacity[o].toString()+"0)";if((fadeOpacity[o]=='9')|(fadeOpacity[o]=='0'))
{if(fadeOpacity[o]=='0')
obj.style.display='none';else
{obj.style.opacity="1";obj.style.filter="alpha(opacity=100)";}
clearInterval(fadeTimer[o]);delete(fadeTimer[o]);delete(fadeTimer[o]);delete(fadeOpacity[o]);}}
function makeRequest(url,container)
{var http_request=false;if(window.XMLHttpRequest){http_request=new XMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType('text/xml');}}else if(window.ActiveXObject){try{http_request=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{http_request=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}
if(!http_request){alert('Giving up :( Cannot create an XMLHTTP instance');return false;}
http_request.onreadystatechange=function(){alertContents(http_request,container)};url=url;http_request.open('GET',url,true);http_request.send(null);}
