//Browser Support Code
function ajaxFunction(a,b){
var ret="I m fron script";
if(a=="undefined" || a=="null")
return;
if(b=="undefined" || b=="null")
return;
	var ajaxRequest;  // The variable that makes Ajax possible!
	
	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Your browser broke!");
				return false;
			}
		}
	}
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
                  if(a != "return")
			      document.getElementById(a).innerHTML = ajaxRequest.responseText;
                  ajaxFunction.ret = ajaxRequest.responseText;

		}
	}
	ajaxRequest.open("GET", b, true);
	ajaxRequest.send(null); 
return ret;
}


function refreshFunction(a,b){
if(a=="undefined" || a=="null")
return;
if(b=="undefined" || b=="null")
return;
	var ajaxRequest;  // The variable that makes Ajax possible!
	
	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Your browser broke!");
				return false;
			}
		}
	}
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
                     a.document.write(ajaxRequest.responseText);
			   a.document.close(); 
		         a.focus();
		}
	}
	ajaxRequest.open("GET", b, true);
	ajaxRequest.send(null); 
}

function clicked(a){
if(a == 'rar'){
//location="http://www.sravi.com/gtheme/download?Type=RAR";
location="http://www.sravi.com/gtheme/download/gtheme2.0.rar";
}else{
if(a == 'zip'){
//location="http://www.sravi.com/gtheme/download?Type=ZIP";
location="http://www.sravi.com/gtheme/download/gtheme2.0.zip";
}else{
location="http://www.sravi.com/gtheme/download.html";
}
}
}

function callAllFunction(){
ajaxFunction("ColOneTail","./side/ColOneTail.html");
ajaxFunction("rightSide1","./side/side1.html");
ajaxFunction("rightSide2","./side/side2.html");
ajaxFunction("rightSide3","./side/side3.html");
ajaxFunction("rightSide4","./side/side4.html");

ajaxFunction("leftSide1","./side/leftside1.html");
ajaxFunction("leftSide2","./side/leftside2.html");
ajaxFunction("leftSide3","./side/leftside3.html");
ajaxFunction("leftSide4","./side/leftside4.html");

ajaxFunction("leftHeader","./side/leftHeader.html");
ajaxFunction("rightHeader","./side/rightHeader.html");
ajaxFunction("colOneTop","./side/colOneTop.html");
//ajaxFunction("colOneTop","./side/headtip.html");

ajaxFunction("headerTail","./side/headerTail.html");

}
