function toggleOff(id)
{var e=document.getElementById(id);e.style.display="none";}
function toggleOn(id)
{var e=document.getElementById(id);e.style.display="";}
function fadeIn(id)
{jQuery('#'+id+'').fadeIn(800);}
function fadeOut(id)
{$('#'+id+'').fadeOut(800);}
function slideDown(id)
{$('#'+id+'').slideDown(800);}
function slideUp(id)
{$('#'+id+'').slideUp(800);}
function notify(id){fadeIn(id);setInterval("endNotification(\'"+id+"\')",5000);}
function endNotification(identifier){fadeOut(identifier);}
function isValidImage(img)
{img.toLowerCase();if(img.indexOf(".jpg")>0||img.indexOf(".gif")>0||img.indexOf(".png")>0){return true;}else{return false;}}
function run(url){var ajaxReq;try{ajaxReq=new XMLHttpRequest();}
catch(e){try{ajaxReq=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{ajaxReq=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e){alert("The Web site does use JavaScript. Please enable JavaScript through your browser preferences.");return false;}}}
ajaxReq.open("GET",url);ajaxReq.send(null);}
function checkEmail(email){var isValid=true;AtPos=email.indexOf("@")
StopPos=email.lastIndexOf(".")
if(AtPos==-1||StopPos==-1){isValid=false;}if(StopPos<AtPos){isValid=false;}if(StopPos-AtPos==1){isValid=false;}return isValid;}

function isNumeric(strString)
   {
   var strValidChars = "0123456789.-";
   var strChar;
   var blnResult = true;
   if (strString.length == 0) return false;
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
   return blnResult;
   }

