function getContent(url,objdiv){
   
	var XMLhttpObj = false;
    if (typeof XMLHttpRequest != 'undefined'){
        XMLhttpObj = new XMLHttpRequest();
    } else if (window.ActiveXObject){
        	try{
            	XMLhttpObj = new ActiveXObject('Msxml2.XMLHTTP');
        	} catch(e) {
            		try{
                		XMLhttpObj = new ActiveXObject('Microsoft.XMLHTTP');
            		} catch(e) {}
        	}
    }
    if (!XMLhttpObj) return;
	
	XMLhttpObj.onreadystatechange = function() {
    	if (XMLhttpObj.readyState == 4) { // when request is complete
            fillSelect(XMLhttpObj.responseText,objdiv);
        }
    };
    //url = "http://shivaji/viewmytv/test.asp";
    XMLhttpObj.open('GET', url, true);
    XMLhttpObj.send(null);
}

function getContent1(url){
    
	var XMLhttpObj = false;
    if (typeof XMLHttpRequest != 'undefined'){
        XMLhttpObj = new XMLHttpRequest();
    } else if (window.ActiveXObject){
        	try{
            	XMLhttpObj = new ActiveXObject('Msxml2.XMLHTTP');
        	} catch(e) {
            		try{
                		XMLhttpObj = new ActiveXObject('Microsoft.XMLHTTP');
            		} catch(e) {}
        	}
    }
    if (!XMLhttpObj) return;
	
	XMLhttpObj.onreadystatechange = function() {
    	if (XMLhttpObj.readyState == 4) { // when request is complete
            return XMLhttpObj.responseText
        }
    };
    //url = "http://shivaji/viewmytv/test.asp";
    XMLhttpObj.open('GET', url, true);
    XMLhttpObj.send(null);
}
function fillSelect(outputText,objdiv) {
    //var elmChannel = objdiv; //document.getElementById(objdiv);
    //alert(elmChannel);
	//alert(outputText);
    // clear out existing DIV data
    objdiv.innerHTML = "";
	objdiv.innerHTML = outputText;
	outputText='';
	
}

function getContentwithfocus(url,objdiv,objctr){
   
	var XMLhttpObj = false;
    if (typeof XMLHttpRequest != 'undefined'){
        XMLhttpObj = new XMLHttpRequest();
    } else if (window.ActiveXObject){
        	try{
            	XMLhttpObj = new ActiveXObject('Msxml2.XMLHTTP');
        	} catch(e) {
            		try{
                		XMLhttpObj = new ActiveXObject('Microsoft.XMLHTTP');
            		} catch(e) {}
        	}
    }
    if (!XMLhttpObj) return;
	
	XMLhttpObj.onreadystatechange = function() {
    	if (XMLhttpObj.readyState == 4) { // when request is complete
            fillSelectwithfocus(XMLhttpObj.responseText,objdiv,objctr);
        }
    };
    //url = "http://shivaji/viewmytv/test.asp";
    XMLhttpObj.open('GET', url, true);
    XMLhttpObj.send(null);
}


function fillSelectwithfocus(outputText,objdiv,objctr) {
    //var elmChannel = objdiv; //document.getElementById(objdiv);
    //alert(elmChannel);
	//alert(outputText);
    // clear out existing DIV data
    objdiv.innerHTML = "";
	objdiv.innerHTML = outputText;
	outputText='';
	//alert(objctr)
	objctr=document.getElementById(objctr)
	if(objctr)
	{
	   
	    objctr.focus();
	}
}




function CheckSession1(outputText) {
    //var elmChannel = objdiv; //document.getElementById(objdiv);
    //alert(elmChannel);
	//alert(outputText);
    // clear out existing DIV data
    objdiv.innerHTML = "";
	objdiv.innerHTML = outputText;
	outputText='';
}


function CheckSession(){
   
	var XMLhttpObj = false;
    if (typeof XMLHttpRequest != 'undefined'){
        XMLhttpObj = new XMLHttpRequest();
    } else if (window.ActiveXObject){
        	try{
            	XMLhttpObj = new ActiveXObject('Msxml2.XMLHTTP');
        	} catch(e) {
            		try{
                		XMLhttpObj = new ActiveXObject('Microsoft.XMLHTTP');
            		} catch(e) {}
        	}
    }
    if (!XMLhttpObj) return;
	
	XMLhttpObj.onreadystatechange = function() {
    	if (XMLhttpObj.readyState == 4) { // when request is complete
            fillSelect(XMLhttpObj.responseText,objdiv);
        }
    };
    //url = "http://shivaji/viewmytv/test.asp";
    XMLhttpObj.open('GET', 'session.aspx', true);
    XMLhttpObj.send(null);
}
