//Variable Data
var reqt = false;

// // // // //



//fnLoad Function
function fnLoad(link, container){

cont = container;

//Check Supported Browser
try { reqt = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP'); }

//When Not Supported
catch(e){ alert('Unfortunatelly you browser doesn\'t support this feature!'); }

//Check Loaded Status
reqt.onreadystatechange = fnCheck;

//Open Link
reqt.open('POST',link);

//Send
reqt.send('');

} 

// // // // //


//fnCheck Function
function fnCheck(){

//When Loaded
if((reqt.readyState == 4) && (reqt.status == 200)){

//Output
document.getElementById(cont).innerHTML = reqt.responseText;

if(cont == 'printCont')
{
	window.print();
}

}

}


// // // // //