﻿// JScript File

function SetSession(section,id)
{
  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;
           }
        }
  }
  xmlHttp.onreadystatechange=function()
  {
      if(xmlHttp.readyState==4)
      {
        
      }
  }  
  xmlHttp.open("GET","/setparam.aspx?section=" + section + "&id=" + id,true);
  xmlHttp.send(null); 
  return false;
}
function openFeaturePop(val)
{
    newwindow2=window.open('/Features.aspx?id='+val,'name','toolbar=0,menubar=0,status=0,height=500,width=400,left=400,top=100');  
    return false;
}

function ResetForm()
{
    document.forms[0].reset();
    return false;
}
function SetValidatorDisable(id)
{
  var myVal = document.getElementById(id); 
  ValidatorEnable(myVal, false); 
}
function SetValidatorEnable(id)
{
  var myVal = document.getElementById(id); 
  ValidatorEnable(myVal, true); 
}
function BenefitsPopup()
{
        
          window.open('/registration_benefits.aspx',null,'left=100,top=50,toolbar=0,scrollbars=0,height=200,width=400,resizable=0,status=0,location=0');              
          return false;
           
        }