function showPopUpWinCartel(MyRecordID, MyTableName){
	destX = event.clientX +  document.body.scrollLeft - 250;
	destY = event.clientY +  document.body.scrollTop - 180;
	destY = event.clientY +  document.body.scrollTop -100;
	hidePopUpWin();
	with(document.all){
		eval("PopUpWinObj.style.top = destY;");
		eval("PopUpWinObj.style.left = destX;");
		eval("PopUpWinObj.style.display = '';");
	}
	with(document.frames("PopUpWinObj")){
		TableName = MyTableName
		RecordID = MyRecordID
		InitValues();
		 
	}
	document.frames("PopUpWinObj").location.href='../GlobalClean/SendAddByMailCartel.asp?ID=' + RecordID + '&TableName=' + TableName
	//document.frames("PopUpWinObj").parentRef = eval("document.all.PopUpWinObj");
	
}	

function showPopUpWin1Cartel(MyRecordID, MyTableName){
	destX = event.clientX +  document.body.scrollLeft - 250;
	destY = event.clientY +  document.body.scrollTop - 180;
	destY = event.clientY +  document.body.scrollTop -100;
	hidePopUpWin();
	with(document.all){
		eval("PopUpWinObj1.style.top = destY;");
		eval("PopUpWinObj1.style.left = destX;");
		eval("PopUpWinObj1.style.display = '';");
	}
	with(document.frames("PopUpWinObj1")){
		TableName = MyTableName
		RecordID = MyRecordID
		InitValues();
		 
	}
	document.frames("PopUpWinObj1").location.href='../GlobalClean/SendMessageByMailCartel.asp?ID=' + RecordID + '&TableName=' + TableName
	//document.frames("PopUpWinObj1").parentRef = eval("document.all.PopUpWinObj1");
	
}	


function showPopUpWin(MyRecordID, MyTableName){
	destX = event.clientX +  document.body.scrollLeft - 250;
	destY = event.clientY +  document.body.scrollTop - 180;
	destY = event.clientY +  document.body.scrollTop -100;
	hidePopUpWin();
	with(document.all){
		eval("PopUpWinObj.style.top = destY;");
		eval("PopUpWinObj.style.left = destX;");
		eval("PopUpWinObj.style.display = '';");
	}
	with(document.frames("PopUpWinObj")){
		TableName = MyTableName
		RecordID = MyRecordID
		InitValues();
		 
	}
	//document.frames("PopUpWinObj").location.href='../GlobalClean/SendAddByMail.asp?ID=' + RecordID + '&TableName=' + TableName
	document.frames("PopUpWinObj").parentRef = eval("document.all.PopUpWinObj");
	
}	


	

function hidePopUpWin(){
	document.all.PopUpWinObj.style.display="none";
}

function showPopUpWin1(MyRecordID, MyTableName){
	destX = event.clientX +  document.body.scrollLeft - 250;
	destY = event.clientY +  document.body.scrollTop - 180;
	destY = event.clientY +  document.body.scrollTop -100;
	hidePopUpWin();
	with(document.all){
		eval("PopUpWinObj1.style.top = destY;");
		eval("PopUpWinObj1.style.left = destX;");
		eval("PopUpWinObj1.style.display = '';");
	}
	with(document.frames("PopUpWinObj1")){
		TableName = MyTableName
		RecordID = MyRecordID
		InitValues();
		 
	}
	//document.frames("PopUpWinObj1").location.href='../GlobalClean/SendMessageByMail.asp?ID=' + RecordID + '&TableName=' + TableName
	document.frames("PopUpWinObj1").parentRef = eval("document.all.PopUpWinObj1");
	
}	


	

function hidePopUpWin1(){
	document.all.PopUpWinObj1.style.display="none";
}

function getXmlHttp() {
    var newXmlHttp;
    // code for Mozilla, etc.
    if (window.XMLHttpRequest) {
        newXmlHttp = new XMLHttpRequest();
    }
    
    // code for IE
    else if (window.ActiveXObject) {
        newXmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    
    if (newXmlHttp != null) 
        return newXmlHttp;
    else 
        return false;
}