function changeSubBth() {
  if (document.formi.agree.checked) {
    if (document.getElementById && (obj = document.getElementById('submitReportBtn11')) && (style = obj.style))
    {
        style.display = 'none';
    }

    if (document.getElementById && (obj = document.getElementById('submitReportBtn2')) && (style = obj.style))
    {
        style.display = 'block';
        document.getElementById('submitHref').focus();
    }
  }

  if (!document.formi.agree.checked) {
    if (document.getElementById && (obj = document.getElementById('submitReportBtn11')) && (style = obj.style))
    {
        style.display = 'block';
    }

    if (document.getElementById && (obj = document.getElementById('submitReportBtn2')) && (style = obj.style))
    {
        style.display = 'none';
    }
  }
}

    var popupWin;
    function openHelpWindow(url) {
      popupWin = window.open(url, 'remote', 'scrollbars=1,resizable=1,width=300,height=300,left=100,top=100')
    }

    function closeHelpWindow() {
      if (popupWin && popupWin.open && !popupWin.closed) popupWin.close();
    }
      
    function helpi(){
    popupWin = window.open("", "remote", 'toolbar=false,directories=false,status=false,menubar=false,scrollbars=yes,resizable=0,width=250,height=500'); 
    
    helper = "<html><head></head><body onblur=\"window.close();\"><b>How to write a Detailed Report:</b><br><br>" +
    "<font face=\"MS Sans Serif\" size=\"-2\">When you're asked for a detailed description, be as elaborate as necessary. For example, instead of saying, \"I can't send an IM,\" say \"When I click the Send button, my AIM software makes a sound as if it were sending the message, but no text appears in the upper box.\"<br><br>" +
    "Please include any error messages that you see when the problem occurs.<br><br>" +
    "When you're listing the steps to reproduce the problem, if possible, go through the procedure again and take notes. The more detail you can give us, the more likely it is we can find out what's wrong.<br><br>" +
    "Note: If you're using Windows, and the problem caused your computer to crash, a special file may have been created. If there was a crash,  and you haven't yet tried to log into AIM again, try this first:<br><br>" +
    "1. Before your next login to AIM, go to your system's temp directory. This is normally one of the following:<br>C:\\Windows\\temp<br>C:\\Documents and Settings\\[Windows_Username]\\local settings\\temp <br>" +
    "2. Locate the aim_ph.dat file in that directory, and open it using a text editor such as Notepad or Wordpad. (If the aim_ph.dat file isn't there, search your hard drive for it.)<br>" +
    "3. Copy the entire contents of the file to the clipboard by selecting all of the text and pressing Ctrl-C.<br>" +
    "4. Paste that text into the Detailed Description text area on the bug report form by clicking in that area and pressing Ctrl-V.<br><br>" +
    "In this case, you don't need to supply any additional descriptive information, but please do fill out the rest of the form.</font></body></html>";
    
    popupWin.document.write(helper);
    } 

    
    
        function redtape(){
            var name=document.formi.name.value;
            var email=document.formi.email.value;
            var usr_SN=document.formi.user_specified_SN.value;
            var num=document.formi.num.value;
            var plat=document.formi.plat.value;
            var t_stamp=document.formi.user_specified_timestamp.value;
            var t_zone=document.formi.t_zone.value;
            var topic=document.formi.topic.value;
            var props=document.formi.probs.value;
            var bug=document.formi.bug.value;
            var steps=document.formi.steps.value.length;
            var conf=document.formi.configuration.value.length;
            var chk=document.formi.chk;

            for(i=8;i<document.formi.elements.length;i++)
            {
              if(document.formi.elements[i].value<=" ")
	            {
	            alert('You must fill this form out entirely.');
	            document.formi.elements[i].focus();
              return false;
              }
            }
            if(email.indexOf("@")==-1){
	alert('Please enter a correct email address.');
            	document.formi.elements[9].focus(+5);
              return false;
            }
            if(chk.checked==false)
            {
	            alert('You must check this checkbox for acknowledgement.');
	            document.formi.elements[20].focus();
              return false;
            }
            return true;           
        }







var topics=document.formi.topic.options.length
var problems=new Array(topics)
for (i=0; i<topics; i++)

problems[i]=new Array()


problems[0][0]=new Option("Please select an area from above"," ")
problems[1][0]=new Option("Account confirmation not working","Account confirmation not working")
problems[1][1]=new Option("E-mail change request not working (Note: Process time is 72 hours)","E-mail change request not working (Note: Process time is 72 hours)")
problems[1][2]=new Option("Registration error: 'You exceeded the registration limit'","Registration error: 'You exceeded the registration limit'")
problems[1][3]=new Option("Problem with account registration - other","Problem with account registration - other")
problems[2][0]=new Option("Problem with the Add-Ins feature","Problem with the Add-Ins feature")
problems[3][0]=new Option("Problem with an ad","Problem with an ad")
problems[4][0]=new Option("Problem with any AIM Expressions feature","Problem with any AIM Expressions feature")
problems[5][0]=new Option("Problem with AIM Games","Problem with AIM Games")
problems[6][0]=new Option("Problem with the AIM Sync feature","Problem with the AIM Sync feature")
problems[7][0]=new Option("AIM Today content not updating ","AIM Today content not updating")
problems[7][1]=new Option("Other Problems with AIM Today","Other Problems with AIM Today")
problems[8][0]=new Option("Problem with the AIM Toolbar"," Problem with the AIM Toolbar")
problems[9][0]=new Option("Problem with the Web Alerts feature (not Buddy Alerts or Mail Alerts)"," Problem with the Web Alerts feature (not Buddy Alerts or Mail Alerts)")
problems[10][0]=new Option("Problem with AOL Browser or SpyZapper")
problems[11][0]=new Option("Problem with the Away Message feature","Problem with the Away Message feature")
problems[12][0]=new Option("Problem with the Buddy Alerts feature","Problem with the Buddy Alerts feature")
problems[13][0]=new Option("Problem with the Buddy Comments/Notes feature","Problem with the Buddy Comments/Notes feature")
problems[14][0]=new Option("Buddies are not receiving your icon","Buddies are not receiving your icon")
problems[14][1]=new Option("You are not receiving your buddies' icons","You are not receiving your buddies' icons")
problems[14][2]=new Option("Problem with the Buddy Icons feature - other","Problem with the Buddy Icons feature - other")
problems[14][3]=new Option("Problem with SuperBuddy Icons","Problem with SuperBuddy Icons")
problems[15][0]=new Option("Buddy List contents disappeared (TRY WAITING A FEW HOURS)","Buddy List contents disappeared (TRY WAITING A FEW HOURS)")
problems[15][1]=new Option("Buddy List does not correctly show which users are online","Buddy List does not correctly show which users are online")
problems[15][2]=new Option("Problem with the Buddy List - other","Problem with the Buddy List - other")
problems[16][0]=new Option("Problem with certificates and encryption","Problem with certificates and encryption")
problems[17][0]=new Option("AIM Express Auditoriums","AIM Express Auditoriums")
problems[17][1]=new Option("Regular chat","Regular chat")
problems[18][0]=new Option("Password problem (PLEASE READ THE FAQ)","Password problem (PLEASE READ THE FAQ)")
problems[18][1]=new Option("Disconnected from the service while still connected to Internet","Disconnected from the service while still connected to Internet")
problems[18][2]=new Option("'Reservation' error message","'Reservation' error message")
problems[18][3]=new Option("'Service can't be reached' error message","'Service can't be reached' error message")
problems[18][4]=new Option("'Signing on again too soon' error message","'Signing on again too soon' error message")
problems[18][5]=new Option("Proxy problem","Proxy problem")
problems[18][6]=new Option("Problem with connection - other","Problem with connection - other")
problems[19][0]=new Option("Application crash or freeze","Application crash or freeze")
problems[20][0]=new Option("Problem with updating your own profile","Problem with updating your own profile")
problems[20][1]=new Option("Problem with searching for other users","Problem with searching for other users")
problems[20][2]=new Option("Problem with Directory/profile/search - other","Problem with Directory/profile/search - other")
problems[21][0]=new Option("Problem with the documentation","Problem with the documentation")
problems[22][0]=new Option("Problem with the FAQ","Problem with the FAQ")
problems[23][0]=new Option("File transfer not working (Get File)","File transfer not working (Get File)")
problems[23][1]=new Option("File transfer not working (Send File)","File transfer not working (Send File)")
problems[23][2]=new Option("File transfer not working (Get File or Send File)","File transfer not working (Get File or Send File)")
problems[23][3]=new Option("Problem with the File transfer feature - other","Problem with the File transfer feature - other")
problems[24][0]=new Option("Problem with the Idle Message feature","Problem with the Idle Message feature")
problems[25][0]=new Option("Instant Messaging between AIM/AOL and ICQ","Instant Messaging between AIM/AOL and ICQ")
problems[25][1]=new Option("Problem with the Instant Message feature - other","Problem with the Instant Message feature - other")
problems[26][0]=new Option("Problem with the IM Greetings feature","Problem with the IM Greetings feature")
problems[27][0]=new Option("Problem with the IM Image (Direct IM) feature","Problem with the IM Image (Direct IM) feature")
problems[28][0]=new Option("Problem with doing a Get Info on someone","Problem with doing a Get Info on someone")
problems[29][0]=new Option("Automatic upgrade problem","Automatic upgrade problem")
problems[29][1]=new Option("Unable to download the installer","Unable to download the installer")
problems[29][2]=new Option("Unable to find the installer after downloading it","Unable to find the installer after downloading it")
problems[29][3]=new Option("Installer fails to complete","Installer fails to complete")
problems[29][4]=new Option("Problem with the installer - other","Problem with the installer - other")
problems[30][0]=new Option("Problem with the Live Video IM feature","Problem with the Live Video IM feature")
problems[31][0]=new Option("Problem with the logging feature","Problem with the logging feature")
problems[32][0]=new Option("AOL, CompuServe, or Netscape mailbox not showing up in AIM","AOL, CompuServe, or Netscape mailbox not showing up in AIM")
problems[32][1]=new Option("Problem with the e-mail address that is stored for a buddy","Problem with the e-mail address that is stored for a buddy")
problems[32][2]=new Option("Problem with the Read Mail feature","Problem with the Read Mail feature")
problems[32][3]=new Option("Problem with the Send Mail feature","Problem with the Send Mail feature")
problems[32][4]=new Option("Problem with mail - other. (IMAP, web-based, and additional AOL mailboxes are not supported.)","Problem with mail - other. (IMAP, web-based, and additional AOL mailboxes are not supported.)")
problems[33][0]=new Option("Problem with the Notification pop-ups","Problem with the Notification pop-ups")
problems[34][0]=new Option("Problem with the Outlook Express integration","Problem with the Outlook Express integration")
problems[35][0]=new Option("Problem with a privacy feature, such as Blocking","Problem with a privacy feature, such as Blocking")
problems[36][0]=new Option("Problem with the Screen Name Linking feature","Problem with the Screen Name Linking feature")
problems[37][0]=new Option("Select this if you know details of a security issue affecting AIM","Select this if you know details of a security issue affecting AIM")
problems[38][0]=new Option("Problem with the Send Buddy List feature","Problem with the Send Buddy List feature")
problems[39][0]=new Option("Problem with Send/Store Pictures","Problem with Send/Store Pictures")
problems[40][0]=new Option("Sounds not working","Sounds not working")
problems[40][1]=new Option("Problem with sounds - other","Problem with sounds - other")
problems[41][0]=new Option("Unable to establish a Talk connection with other users (PLEASE READ THE FAQ)","Unable to establish a Talk connection with other users (PLEASE READ THE FAQ)")
problems[41][1]=new Option("Problem with audio after establishing a Talk connection (PLEASE READ THE FAQ)","Problem with audio after establishing a Talk connection (PLEASE READ THE FAQ)")
problems[41][2]=new Option("Problem with the Talk feature - other","Problem with the Talk feature - other")
problems[42][0]=new Option("Problem with the News Ticker","Problem with the News Ticker")
problems[42][1]=new Option("Problem with the Stock Ticker","Problem with the Stock Ticker")
problems[43][0]=new Option("Problem with the Warning feature (PLEASE READ THE FAQ)","Problem with the Warning feature (PLEASE READ THE FAQ)")
problems[44][0]=new Option("Problem with WeatherBug","Problem with WeatherBug")
problems[45][0]=new Option("One or more windows are stuck in a maximized state (PLEASE READ THE FAQ)","One or more windows are stuck in a maximized state (PLEASE READ THE FAQ)")
problems[45][1]=new Option("One or more windows are not visible or are stuck off the screen (PLEASE READ THE FAQ)","One or more windows are not visible or are stuck off the screen (PLEASE READ THE FAQ)")
problems[45][2]=new Option("Problem when you or your buddy is using an E-mail Address-based Screen Name","Problem when you or your buddy is using an E-mail Address-based Screen Name")
problems[45][3]=new Option("Suggestion or feature request","Suggestion or feature request")
problems[45][4]=new Option("Unlisted - Please fully describe the issue below","Unlisted - Please fully describe the issue below")

var temp=document.formi.probs

function redirect(x){
for (m=temp.options.length-1;m>0;m--)
temp.options[m]=null
for (i=0;i<problems[x].length;i++){
temp.options[i]=new Option(problems[x][i].text,problems[x][i].value)
}
temp.options[0].selected=true
gothere();
}

var bugs_text = "";
function storeme(){
    bugs_text = document.formi.bug.value;
}

var flag = 0; 
var flag2 = 0;      
function gothere()
{
  var filler1 = document.formi.bug.value;
  var filler = "If you are experiencing issues with AIM Games, please visit these support sites before submitting a Problem Report.\n\n"+ 
           "http://www.aim.com/help_faq/using/win/games.adp \n\nhttp://www.wildtangent.com/support\n\n"+
           "http://forums.wildtangent.com/cgi-bin/communityforum/ikonboard.cgi (see AIM Games)";
  var filler2 = "If you are experiencing a problem with hyperlinks being added to your member profile or away message, please visit the following site before submitting a report: http://aim.com/help_faq/security/trojan.adp";
var filler3 = "If you are experiencing issues with Video IM, please visit the following site before submitting a Problem Report:\n\nhttp://www.aim.com/help_faq/using/win/video_im.adp";
var filler4 = "If you are experiencing a problem with hyperlinks being added to your member profile or away message, please visit the following site before submitting a report: http://aim.com/help_faq/security/trojan.adp";
var filler5 = "If you are experiencing a problem connecting to the AIM service, please select the \"Connection\" topic above.";


    if ( document.formi.topic.options.selectedIndex == 5 && flag == 0)
	{
    	if ( temp.options.selectedIndex == 0)
		{
        	document.formi.bug.value = filler + "\n\n" + filler1;
        	flag = 1;
      	} 
    }
	else if (document.formi.topic.options.selectedIndex == 17 && flag2 == 0)
	{
		if ( temp.options.selectedIndex == 0)
		{
			document.formi.bug.value = filler2 + "\n\n" + filler1;
			flag2 = 1;
		}
	}
	else if (document.formi.topic.options.selectedIndex == 27 && flag2 == 0)
	{
		if ( temp.options.selectedIndex == 0)
		{
			document.formi.bug.value = filler3;
			flag2 = 1;
		}
	}
	else if (document.formi.topic.options.selectedIndex == 28 && flag2 == 0)
	{
		if ( temp.options.selectedIndex == 0)
		{
			document.formi.bug.value = filler5;
			flag2 = 1;
		}
	}
	
	else
	{
        document.formi.bug.value = bugs_text;
        flag = 0;
		flag2 = 0;
    }
}

function go(){
location=temp.options[temp.selectedIndex].value
}

function submitForm()
{
   if (redtape(this)) {
      document.formi.submit();
   }
}

function clearCheck() {
  if (document.formi.agree.checked) {
     document.formi.agree = unchecked;
  }
}

