// JavaScript Document
function createRequestObject() {
    var ro;
    var browser = navigator.appName;
    if(browser == "Microsoft Internet Explorer"){
        ro = new ActiveXObject("Microsoft.XMLHTTP");
    }else{
        ro = new XMLHttpRequest();
    }
    return ro;
}

var http = createRequestObject();
var identity;
function load_idiv(id,action) {	
	var action = action;	
	opacIn();
	document.getElementById('load_movi_div').innerHTML='';
	identity = id;
    http.open('GET', action, true);
    http.onreadystatechange = handleResponseLoadDiv;
    http.send(null);
}

function accept_tearms(){
	var action = 'terms_accept.php';	
    http.open('GET', action, true);
    http.onreadystatechange = handleTermsCondition;
    http.send(null);	
}

function handleResponseLoadDiv() {
	if(http.readyState == 4){
		var response = http.responseText;
		if(http.status == 200)
			{				
				
				 document.getElementById('load_movi_div').innerHTML = response;
			}	
		else{	
            document.getElementById('parent').style.visibility='visible';
	   		document.getElementById('load_movi_div').style.visibility='visible';
		}
    }   
}

function handleTermsCondition() {
  
}
