function setLogo(objImg,titleDiv)
	{
	objImg.style.display='none';
	document.all[titleDiv].style.display='';
	}
	function sStop()
{
	scrollerS.scrollAmount=0
}
function sStart()
{
	scrollerS.scrollAmount=1
}
function SetHeight(tblNum)
{
        //alert(document.getElementById("tblt1").offsetHeight);
        return;
        var maxH = 0;
        var cID ;
        try
        {
        for(i=0 ; i<tblNum ; i++)
        {
            cID = "tbl" + String(i);

            if(Number(document.getElementById(cID).offsetHeight) > Number(maxH))
            {
                maxH = document.getElementById(cID).offsetHeight;
            }
        }
        for(i=0 ; i<tblNum ; i++)
        {
            cID = "tbl" + String(i);
            try
            {
                document.getElementById(cID).style.height = maxH + "px";
            }catch(e){};
        }
        }catch(e){};
}


function changeFields(oForm)
{
	try
	{

        if (document.all.opt_pay[0].checked){
		document.all["Card Number"].style.background = "gray";
                document.all["Card Number"].required="";
		try{
                  document.all["ID Number"].style.background = "gray"
                  document.all["ID Number"].required="";
                }catch(e){};
		document.all["Card Holder"].style.background = "gray";
		document.all["Card Holder"].required="";
		document.all["Card Type"].style.background = "gray";
		document.all["Card Type"].required="";
		document.all["Mounth"].style.background = "gray";
		document.all["Mounth"].required="";
		document.all["Year"].style.background = "gray";
		document.all["Mounth"].required="";
                document.all["OrderByName"].style.display="inline";
                document.all["OrderByCard"].style.display="none";
	}
	else{
		document.all["Card Number"].style.background = "white";
		document.all["Card Number"].required="true";
		try{
                  document.all["ID Number"].style.background = "white"
                  document.all["ID Number"].required="true";
                }catch(e){};
		document.all["Card Holder"].style.background = "white";
		document.all["Card Holder"].required="true";
		document.all["Card Type"].style.background = "white";
		document.all["Card Type"].required="true";
		document.all["Mounth"].style.background = "white";
		document.all["Mounth"].required="true";
		document.all["Year"].style.background = "white";
		document.all["Year"].required="true";
                document.all["OrderByName"].style.display="none";
                document.all["OrderByCard"].style.display="inline";
	}
	}
	catch(e)
        {
          
          };
}
