
//function to show or hide fckeditor



var doc = null;
function ajax() {
	// Make a new XMLHttp object
	if (typeof window.ActiveXObject != 'undefined' ) doc = new ActiveXObject("Microsoft.XMLHTTP");
	else doc = new XMLHttpRequest();
}

function rightadvert(){
	
		ajax();
				
		//setTimeout('Selectadvert1()',2000);	
	
		// Load the result from the response page
		// ** As far a I know firefox will only load a document on the SAME domain!!	
	    if (doc){
	       doc.open("GET", "function.php?section=re_advert", false);
	       doc.send(null);
	    	// Write the response to the div
			
	       document.getElementById('re_advert_div').innerHTML = doc.responseText;
		  }
	    else{
	      
	       destination.innerHTML = 'Browser unable to create XMLHttp Object';
	    }  
						 
}

function rightadvert1(){
	
		ajax();
				
		//setTimeout('Selectadvert1()',2000);	
	
		// Load the result from the response page
		// ** As far a I know firefox will only load a document on the SAME domain!!	
	    if (doc){
	       doc.open("GET", "function.php?section=re_advert1", false);
	       doc.send(null);
	    	// Write the response to the div
			
	       document.getElementById('re_advert_div1').innerHTML = doc.responseText;
		  }
	    else{
	      
	       destination.innerHTML = 'Browser unable to create XMLHttp Object';
	    }  
						 
}

function rightadvert2(){
	
		ajax();
				
		//setTimeout('Selectadvert1()',2000);	
	
		// Load the result from the response page
		// ** As far a I know firefox will only load a document on the SAME domain!!	
	    if (doc){
	       doc.open("GET", "function.php?section=re_advert2", false);
	       doc.send(null);
	    	// Write the response to the div
			
	       document.getElementById('re_advert_div2').innerHTML = doc.responseText;
		  }
	    else{
	      
	       destination.innerHTML = 'Browser unable to create XMLHttp Object';
	    }  
						 
}

function Selectadvert(){
	
		ajax();
		
	//	if(document.getElementById('re_advert_div').innerHTML!='')
		rightadvert();
		rightadvert1();
		rightadvert2();
		//setTimeout('Selectadvert1()',2000);	
	
		// Load the result from the response page
		// ** As far a I know firefox will only load a document on the SAME domain!!	
	    if (doc){
	       doc.open("GET", "function.php?section=advert", false);
	       doc.send(null);
	    	// Write the response to the div
			
	       document.getElementById('advert_div').innerHTML = doc.responseText;
		  }
	    else{
	      
	       destination.innerHTML = 'Browser unable to create XMLHttp Object';
	    }  
			setTimeout('Selectadvert()',5000);			 
}

					


function showHideDes(toggle_id){

if(document.getElementById(toggle_id).style.display=='none')
	toggle = 'inline';
else
	toggle = 'none';

document.getElementById(toggle_id).style.display=toggle;
}