function VgoooBox(html){
	if(document.getElementById("vgoooBoxDiv")){
		document.body.removeChild(document.getElementById("vgoooBoxDiv"));
	}

	var sWidth,sHeight,dWidth,dHeight;
	sWidth=window.screen.width-22;
	if (window.navigator.userAgent.indexOf("MSIE")>=1) {
		sHeight=document.body.clientHeight;
		if(sHeight<(window.screen.availHeight-130))sHeight=window.screen.availHeight-130;
	}else{
		sHeight=document.documentElement.scrollHeight;
	}
	dHeight=document.documentElement.scrollTop+((window.screen.availHeight-300)/2);
	dWidth=((sWidth-380)/2);

	var msgObj=document.createElement("div");
	msgObj.setAttribute("id","vgoooBoxDiv");
	document.body.appendChild(msgObj);
	document.getElementById("vgoooBoxDiv").innerHTML="";

	var bgObj=document.createElement("div");
	bgObj.setAttribute("id","vgoooBgDiv");
	bgObj.style.position="absolute";
	bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75";
	bgObj.style.opacity="0.48";
	bgObj.style.width=sWidth+"px";
	bgObj.style.height=sHeight+"px";
	bgObj.style.top="0";
	bgObj.style.left="0";
	bgObj.style.background="#fafafa";
	document.getElementById("vgoooBoxDiv").appendChild(bgObj);

	var tipbigdivObj=document.createElement("div");
	tipbigdivObj.setAttribute("id","tipbigdivDiv");
	tipbigdivObj.setAttribute("className","tipbigdiv");
	tipbigdivObj.setAttribute("class","tipbigdiv");

	tipbigdivObj.style.top=dHeight+"px";
	tipbigdivObj.style.left=dWidth+"px";
	document.getElementById("vgoooBoxDiv").appendChild(tipbigdivObj);

	var tipdivbgObj=document.createElement("div");
	tipdivbgObj.setAttribute("id","tipdivbgDiv");
	tipdivbgObj.setAttribute("className","tipdivbg");
	tipdivbgObj.setAttribute("class","tipdivbg");
	document.getElementById("tipbigdivDiv").appendChild(tipdivbgObj);

	var tipslayerObj=document.createElement("div");
	tipslayerObj.setAttribute("id","tipslayerDiv");
	tipslayerObj.setAttribute("className","tipslayer");
	tipslayerObj.setAttribute("class","tipslayer");
	document.getElementById("tipbigdivDiv").appendChild(tipslayerObj);

	var tipslayertitleObj=document.createElement("div");
	tipslayertitleObj.setAttribute("id","tipslayertitleDiv");
	tipslayertitleObj.setAttribute("className","tipslayer-title");
	tipslayertitleObj.setAttribute("class","tipslayer-title");
	tipslayertitleObj.innerHTML='温馨提示';
	tipslayertitleObj.style.cursor="move";
	tipslayertitleObj.setAttribute("canmove","true");
	tipslayertitleObj.setAttribute("forid","tipbigdivDiv");
	document.getElementById("tipslayerDiv").appendChild(tipslayertitleObj);

	var tipslayercontentObj=document.createElement("div");
	tipslayercontentObj.setAttribute("id","tipslayercontentDiv");
	tipslayercontentObj.setAttribute("className","tipslayer-content");
	tipslayercontentObj.setAttribute("class","tipslayer-content");
	document.getElementById("tipslayerDiv").appendChild(tipslayercontentObj);

	var tipcontenttext1Obj=document.createElement("div");
	tipcontenttext1Obj.setAttribute("id","VgoooBoxHtml");
	tipcontenttext1Obj.setAttribute("className","tipcontent-text1");
	tipcontenttext1Obj.setAttribute("class","tipcontent-text1");
	tipcontenttext1Obj.innerHTML=html;
	document.getElementById("tipslayercontentDiv").appendChild(tipcontenttext1Obj);

	var tipbntObj=document.createElement("div");
	tipbntObj.setAttribute("id","tipbntDiv");
	tipbntObj.setAttribute("className","tipbnt");
	tipbntObj.setAttribute("class","tipbnt");
	tipbntObj.innerHTML='<input type="button" value="关闭" onclick="CloseVgoooBox()"/>';
	document.getElementById("tipslayerDiv").appendChild(tipbntObj);

	var md=false,mobj,ox,oy;
	document.onmousedown=function(ev){
		var ev=ev||window.event;
		var evt=ev.srcElement||ev.target;
		if(typeof(evt.getAttribute("canmove"))=="undefined"){
			return;
		}
		if(evt.getAttribute("canmove")){
			md = true;
			mobj = document.getElementById(evt.getAttribute("forid"));
			ox = mobj.offsetLeft - ev.clientX;
			oy = mobj.offsetTop - ev.clientY;
		}
	}
	document.onmouseup = function(){md=false;}
	document.onmousemove = function(ev){
		var ev=ev||window.event;
		if(md){
			mobj.style.left= (ev.clientX + ox)+"px";
			mobj.style.top= (ev.clientY + oy)+"px";
		}
	}
	var sels = document.getElementsByTagName("SELECT");
	for(var i=0; i<sels.length; i++){
		sels[i].style.visibility = 'hidden';
	}
	this.CloseVgoooBox = function(){
		document.body.removeChild(document.getElementById("vgoooBoxDiv"));
		for(var i=0; i<sels.length; i++){
			sels[i].style.visibility = '';
		}
	}
}

function VgoooBox2(html)
{
	if(document.getElementById("vgoooBoxDiv")){
		document.body.removeChild(document.getElementById("vgoooBoxDiv"));
	}

	var sWidth,sHeight,dWidth,dHeight;
	sWidth=window.screen.width-22;
	if (window.navigator.userAgent.indexOf("MSIE")>=1) {
		sHeight=document.body.clientHeight;
		if(sHeight<(window.screen.availHeight-130))sHeight=window.screen.availHeight-130;
	}else{
		sHeight=document.documentElement.scrollHeight;
	}
	dHeight=document.documentElement.scrollTop+((window.screen.availHeight-300)/2);
	dWidth=((sWidth-380)/2);

	var msgObj=document.createElement("div");
	msgObj.setAttribute("id","vgoooBoxDiv");
	document.body.appendChild(msgObj);
	document.getElementById("vgoooBoxDiv").innerHTML="";

	var bgObj=document.createElement("div");
	bgObj.setAttribute("id","vgoooBgDiv");
	bgObj.style.position="absolute";
	bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75";
	bgObj.style.opacity="0.48";
	bgObj.style.width=sWidth+"px";
	bgObj.style.height=sHeight+"px";
	bgObj.style.top="0";
	bgObj.style.left="0";
	bgObj.style.background="#fafafa";
	document.getElementById("vgoooBoxDiv").appendChild(bgObj);

	var tipbigdivObj=document.createElement("div");
	tipbigdivObj.setAttribute("id","bigdiv2");
	tipbigdivObj.setAttribute("className","bigdiv2");
	tipbigdivObj.setAttribute("class","bigdiv2");

	tipbigdivObj.style.top=dHeight+"px";
	tipbigdivObj.style.left=dWidth+"px";
	document.getElementById("vgoooBoxDiv").appendChild(tipbigdivObj);

//	var tipdivbgObj=document.createElement("div");
//	tipdivbgObj.setAttribute("id","tipdivbgDiv");
//	tipdivbgObj.setAttribute("className","tipdivbg");
//	tipdivbgObj.setAttribute("class","tipdivbg");
//	document.getElementById("bigdiv2").appendChild(tipdivbgObj);

	var divbg2Obj=document.createElement("div");
	divbg2Obj.setAttribute("id","divbg2Div");
	divbg2Obj.setAttribute("className" , "divbg2");
	divbg2Obj.setAttribute("class" , "divbg2");
	document.getElementById("bigdiv2").appendChild(divbg2Obj);

	var divbg2Obj=document.createElement("div");
	divbg2Obj.setAttribute("className" , "divbg2_top");
	divbg2Obj.setAttribute("class" , "divbg2_top");
	document.getElementById("divbg2Div").appendChild(divbg2Obj);

	var divbg2Obj=document.createElement("div");
	divbg2Obj.setAttribute("className" , "divbg2_content");
	//divbg2Obj.style.height='500px';
	divbg2Obj.setAttribute("class" , "divbg2_content");
	document.getElementById("divbg2Div").appendChild(divbg2Obj);

	var divbg2Obj=document.createElement("div");
	divbg2Obj.setAttribute("className" , "divbg2_bottom");
	divbg2Obj.setAttribute("class" , "divbg2_bottom");
	document.getElementById("divbg2Div").appendChild(divbg2Obj);
	
	var tipslayer2Obj=document.createElement("div");
	tipslayer2Obj.setAttribute("id" , "tipslayer2Div");
	tipslayer2Obj.setAttribute("className" , "tipslayer2");
	tipslayer2Obj.setAttribute("class" , "tipslayer2");
	document.getElementById("bigdiv2").appendChild(tipslayer2Obj);	

	var tipslayertitleObj=document.createElement("div");
	tipslayertitleObj.setAttribute("id","tipslayertitleDiv");
	tipslayertitleObj.setAttribute("className","tipslayer-title2");
	tipslayertitleObj.setAttribute("class","tipslayer-title2");
	tipslayertitleObj.innerHTML='温馨提示';
	tipslayertitleObj.style.cursor="move";
	tipslayertitleObj.setAttribute("canmove","true");
	tipslayertitleObj.setAttribute("forid","bigdiv2");
	document.getElementById("tipslayer2Div").appendChild(tipslayertitleObj);

	var tipslayercontent2Obj=document.createElement("div");
	tipslayercontent2Obj.setAttribute("id","tipslayer-content2Div");
	tipslayercontent2Obj.setAttribute("className","tipslayer-content2");
	tipslayercontent2Obj.setAttribute("class","tipslayer-content2");
	document.getElementById("tipslayer2Div").appendChild(tipslayercontent2Obj);

	var tipcontenttext1Obj=document.createElement("div");
	tipcontenttext1Obj.setAttribute("id","VgoooBoxHtml");
	tipcontenttext1Obj.setAttribute("className","tipcontent-text1");
	tipcontenttext1Obj.setAttribute("class","tipcontent-text1");
	tipcontenttext1Obj.innerHTML=html;
	document.getElementById("tipslayer-content2Div").appendChild(tipcontenttext1Obj);
	
	var tipbntObj=document.createElement("div");
	tipbntObj.setAttribute("id","bntdivDiv");
	tipbntObj.setAttribute("className","bntdiv");
	tipbntObj.setAttribute("class","bntdiv");
	//tipbntObj.innerHTML='<input type="button" value="确定" class="bnt1" />';
	tipbntObj.innerHTML+='<input type="button" value="关闭" class="bnt1" onclick="CloseVgoooBox()"/>';
	document.getElementById("tipslayer2Div").appendChild(tipbntObj);

	var md=false,mobj,ox,oy;
	document.onmousedown=function(ev){
		var ev=ev||window.event;
		var evt=ev.srcElement||ev.target;
		if(typeof(evt.getAttribute("canmove"))=="undefined"){
			return;
		}
		if(evt.getAttribute("canmove")){
			md = true;
			mobj = document.getElementById(evt.getAttribute("forid"));
			ox = mobj.offsetLeft - ev.clientX;
			oy = mobj.offsetTop - ev.clientY;
		}
	}
	document.onmouseup = function(){md=false;}
	document.onmousemove = function(ev){
		var ev=ev||window.event;
		if(md){
			mobj.style.left= (ev.clientX + ox)+"px";
			mobj.style.top= (ev.clientY + oy)+"px";
		}
	}
	var sels = document.getElementsByTagName("SELECT");
	for(var i=0; i<sels.length; i++){
		sels[i].style.visibility = '';
	}
	this.CloseVgoooBox = function(){
		document.body.removeChild(document.getElementById("vgoooBoxDiv"));
		for(var i=0; i<sels.length; i++){
			sels[i].style.visibility = '';
		}
	}
	$(".divbg2_content").css("height",$(".tipslayer2").height()+10);
}
