function findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function setTextOfLayer(objName,x,section) { 
	var newText = '<br>';
	var categories = new Array();
	var cat_list   = new Array();
	
	cat_list.push('Domain Names');
	 
	cat_list.push('E-Mail');
	 
	cat_list.push('Web Hosting');
	 

	
		 

			var category_1058045296 = 'Domain Names';
			var question_1058045296 = 'How much is a domain name?';
			var   answer_1058045296 = 'I-Tul will register new domain names or renew existing domain names for $20.  ';
			categories.push(new Array(category_1058045296,
                                                                question_1058045296,
                                                                answer_1058045296,
								'1058045296'));

		

			var category_1058045502 = 'Domain Names';
			var question_1058045502 = 'What is the Internet Corporation Listing Service?  Do I need to pay this?';
			var   answer_1058045502 = 'The Internet Corporation Listing Service is a company that is not affiliated in any way with your domain name or I-Tul.  You do not need to pay them unless you would like to sign up for their services.  They got your name from the public domain name registry.  ';
			categories.push(new Array(category_1058045502,
                                                                question_1058045502,
                                                                answer_1058045502,
								'1058045502'));

		

			var category_1058045634 = 'Domain Names';
			var question_1058045634 = 'How often do I need to renew my domain name?';
			var   answer_1058045634 = 'You will need to renew every year unless you pay for years in advance.  With I-Tul, you can renew for 5 years for $90.  ';
			categories.push(new Array(category_1058045634,
                                                                question_1058045634,
                                                                answer_1058045634,
								'1058045634'));

		
	
		 

			var category_1058045695 = 'E-Mail';
			var question_1058045695 = 'How many e-mail addresses do I get with my I-Tul hosting account?';
			var   answer_1058045695 = 'All hosting accounts have unlimited e-mail accounts.   ';
			categories.push(new Array(category_1058045695,
                                                                question_1058045695,
                                                                answer_1058045695,
								'1058045695'));

		

			var category_1058045834 = 'E-Mail';
			var question_1058045834 = 'How do I set-up spam filters?';
			var   answer_1058045834 = '1.	Log into your CPanel<br>2.	Click on Setup SPAM Filters on the Mail Menu<br>3.	Click on Add Filter<br>4.	Click on the required header field in the first drop-down list. <br>5.	Click on the required filter action in the second drop-down list. <br>6.	Enter the case sensitive text in the third field. <br>7.	Click on the Activate button. <br>';
			categories.push(new Array(category_1058045834,
                                                                question_1058045834,
                                                                answer_1058045834,
								'1058045834'));

		

			var category_1058046003 = 'E-Mail';
			var question_1058046003 = 'What is my I-Tul E-mail server address?';
			var   answer_1058046003 = 'Your e-mail server address is mail.yoursdomain.com.  Example: if your web site was www.soffos.com, your e-mail server would be mail.soffos.com. ';
			categories.push(new Array(category_1058046003,
                                                                question_1058046003,
                                                                answer_1058046003,
								'1058046003'));

		
	
		 

			var category_1058046087 = 'Web Hosting';
			var question_1058046087 = 'How do I log into my Cpanel?';
			var   answer_1058046087 = '1. Open your site in your browser<br>2. In the address box, at the end of your web address type in “cPanel”  (http://www.server.com/cpanel)<br>3. In the logon box, type in your account user name and password.  If you have forgotten your user name and password call I-Tul at (916) 521-0460. <br>';
			categories.push(new Array(category_1058046087,
                                                                question_1058046087,
                                                                answer_1058046087,
								'1058046087'));

		
	
    if(objName == 'answer') {
	switch (section)
	{
	
		
		case 1058045296: 
			newText = '<strong>' + question_1058045296 + '</strong><br>' +
				  answer_1058045296 + '<br>';
			break; 
		
		case 1058045502: 
			newText = '<strong>' + question_1058045502 + '</strong><br>' +
				  answer_1058045502 + '<br>';
			break; 
		
		case 1058045634: 
			newText = '<strong>' + question_1058045634 + '</strong><br>' +
				  answer_1058045634 + '<br>';
			break; 
			
	
		
		case 1058045695: 
			newText = '<strong>' + question_1058045695 + '</strong><br>' +
				  answer_1058045695 + '<br>';
			break; 
		
		case 1058045834: 
			newText = '<strong>' + question_1058045834 + '</strong><br>' +
				  answer_1058045834 + '<br>';
			break; 
		
		case 1058046003: 
			newText = '<strong>' + question_1058046003 + '</strong><br>' +
				  answer_1058046003 + '<br>';
			break; 
			
	
		
		case 1058046087: 
			newText = '<strong>' + question_1058046087 + '</strong><br>' +
				  answer_1058046087 + '<br>';
			break; 
			
	
	}
    }
	

    if(objName == 'category') {


		if(section == 'back') {
		window.location = "http://i-tul.com/faq";
		}
		else {
    			var questions = new Array();
		 	newText += '  <p>&nbsp;</p><ul class="question">';

			var i = 0;	
				while(i<categories.length){

					if(categories[i][0] == section){
			

          				newText += '<li onClick="setTextOfLayer(' 	+ 
				   		"'answer',''," 			+
				   		categories[i][3] 			+
				   		')">' 				+
				   		categories[i][1] + '</li>';
					}
				i++;
				}

	
			newText += '<li onClick="setTextOfLayer('       +
		   			"'category','','back')"              +
		   			'" >'                                +
                   			'<strong><< back to categories</strong></li>';

			newText += '</ul>';
		}

    }
	  document.getElementById(objName).innerHTML = newText;


}
