function showDisclaimer(){
 document.getElementById("disclaimerbody").style.display = 'block';
}

function hideDisclaimer(){
 document.getElementById("disclaimerbody").style.display = 'none';
}

function showHolder(id){
 document.getElementById(id).style.display = 'block';
 // document.getElementById("titleText").style.display = 'none';
}

function hideHolder(id){
	document.getElementById(id).style.display = 'none';
	// document.getElementById("titleText").style.display = 'block';
}

/*
 * function moveFooterNewPos(){
 * document.getElementById("footerCountry").style.marginRight = '13px'; //13px
 * document.getElementById("footerNav").style.marginLeft = '211px'; //211px }
 * 
 * function moveFooterDefaultPos(){
 * document.getElementById("footerCountry").style.marginRight = '3px';
 * document.getElementById("footerNav").style.marginLeft = '0px'; }
 */
// here we define global variable
var ajaxdestination="";
var pageName = "";

//get data from source (what)
function getdata(what,where)
{ 

	pageName = what;
	showHolder(where);
	try
	{
		xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
			new ActiveXObject("Microsoft.XMLHTTP");
	}
	catch (e) { /* do nothing */ }
	
	document.getElementById(where).innerHTML ="<center><img src='images/ajaxLoad.gif'></center>";
	// we are defining the destination DIV id, must be stored in global
	// variable (ajaxdestination)
	ajaxdestination=where;
	xmlhttp.onreadystatechange = triggered; // when request finished,
											// call the function to put
											// result to destination DIV
	xmlhttp.open("GET", what);
	xmlhttp.send(null);
	 
	return false;
}

//put data returned by requested URL to selected DIV
function triggered()
{
	if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
	{
		var response = xmlhttp.responseText;
		var divToSet = document.getElementById(ajaxdestination);
		divToSet.innerHTML = response;
		
		if(pageName == 'register_interest.php')
		{
			bindRegistrationForm();
		}
		if(pageName == '/ratd/request.php')
		{
			bindRegistrationForm();
			// alert('bind Form');
		}
	}   	
}
