function CancelLoad(contentType){
	//document.getElementById("details").style.display='none';
	if(window.delayshow) clearTimeout(delayshow);
	GlobalContentType="";
	GlobalXCord=null;
	GlobalYCord=null;
	
	picId=document.getElementById(contentType+"_qmark");
	picId.src=qmark_ico_p.src;
}

function ShowOutsharePlanDetails(contentType,XCord,YCord){
	GlobalContentType=contentType;
	GlobalXCord=XCord;
	GlobalYCord=YCord;
	picId=document.getElementById(GlobalContentType+"_qmark");
	picId.src=qmark_ico_a.src;
	
	delayshow=setTimeout("OutsharePlanDetails()",700);
	}
	
function OutsharePlanDetails(){
		main_div_id=document.getElementById("details");
		var tmp1=document.body.clientWidth;
		var rightedge = 800-GlobalXCord; //event.clientX;//-XCord; 
		var bottomedge = document.body.clientHeight-GlobalYCord-document.documentElement.scrollTop; //event.clientY;//YCord; 
		var window_left_cord=800+GlobalXCord; //event.clientX; //XCord ;
		var window_top_cord=document.documentElement.scrollTop- GlobalYCord;//event.clientY; //-YCord;
		main_div_id.style.display='block';
		
			var div_width=DetailsWindowWidth;
			var div_height=DetailsWindowHeight;
		if (GlobalXCord>=800-div_width-35){
			main_div_id.style.left = 800-div_width-35+"px";
			
		}
		else {
		main_div_id.style.left = document.body.scrollLeft + GlobalXCord+"px";
		}

		if (bottomedge < div_height)
			{
			main_div_id.style.top = document.documentElement.scrollTop + GlobalYCord - div_height+"px";}
		else
			{
			main_div_id.style.top = document.documentElement.scrollTop + GlobalYCord+"px";}
	
		document.getElementById('details').style.height="0px";
		document.getElementById('details').style.width=div_width;
		document.getElementById('details_frame').height="0px";
		document.getElementById('details_frame').width=div_width;
		var prod_details_link="/detailswindows/Sync2PlansWindow.asp?type="+GlobalContentType;		
		document.getElementById('details_frame').src=prod_details_link;
		DetailsWindowOpen=true;
}


function pausecomp(millis)
{
var date = new Date();
var curDate = null;

do { curDate = new Date(); }
while(curDate-date < millis);
}
