function newXmlHttp(){
	var xmlhttp = false;

	try{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		}catch(e){
			try{
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}catch(e){
				xmlhttp = false;
			}
		}


	if(!xmlhttp && document.createElement){
		xmlhttp = new XMLHttpRequest();
	}

return xmlhttp;
}

function ResizeFrame(totalHeight)
{
	top.document.getElementById("cxDetail").style.height = (totalHeight - 153) + "px";
}

function ScrollingFrame(value)
{
	top.document.getElementById("framemain").scrolling = value;
}

function openparent(vPagesName) 
{
	window.open(vPagesName, '_parent');
}

function openiFrame(vPagesName) {
	window.open(vPagesName, 'framelink');
}

function openiFramemain(vPagesName) {
	window.open(vPagesName, 'framemain');
}

function openiFrameblank(vPagesName) {
	window.open(vPagesName, '_blank');
}

function showDIV(vID) {
	var code_1='<div id="showdiv_1" style="position:absolute; width:100%; height:100%; left: 0px; top: 0px;" ><table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0" style="cursor:wait;Filter:Alpha(opacity=60)" bgcolor="#CCCCCC"><tr><td></td></tr></table></div>';

	if (vID == 1) {
		alert('OK');
		document.write(code_1);
		//document.close();
	} else {alert('#2');}
}

function showmessage(msg){
	alert(msg);
}
