function plotLightBox1(framesrc,iframeContainerWidth,iframeContainerHeight,scroll,form_name){
	var divid = 'closeG' ;
	//var iframeContainerWidth = 740 ;
	//var iframeContainerHeight = 420 ;
	var data = "" ;

	if(!document.getElementById(divid)){
		var newdiv = document.createElement("div");
	  	newdiv.setAttribute("id",divid) ;
		document.body.appendChild(newdiv);
	}	
	
	data += "<div style='position:absolute;z-index:11;top:0;left:0;opacity:.3;filter: alpha(opacity=50); background-color:#000000;width:auto;height:auto;border:0px solid #111;'></div>" ;	
  	data += "<div style='width:100%;position:absolute;top:-50px;left:0;z-index:500;'><center><div style='width:"+iframeContainerWidth+"px;_width:"+(iframeContainerWidth+4)+"px;border:solid 0px #939393;'>" ;
  	data += "<div style='width:"+iframeContainerWidth+"px; padding0px 5px 0 5px;text-align:right;'><div onclick=\"javascript:closeShareIframe('"+divid+"');\" style='float:left;color:#333;cursor:pointer;cursor:hand;background:#fff;font-family:arial;font-size:10px;height:15px;margin-right:10px;display:inline;' title='Close'></div></div>";
	data += "<div id=shareframeloadmsg style='font-family:arial;font-size:16px;position:relative;top:"+(iframeContainerHeight/2)+"px;'><br/><img src=\"images/waiting.gif\" style='vertical-align:middle' alt='' />&nbsp; <b>Loading ! Please wait...</b></div>" ;
	data += "<iframe name='shareThisLightBoxIframe' id='shareThisLightBoxIframe' height="+iframeContainerHeight+" frameborder=0 width="+iframeContainerWidth+" scrolling="+scroll+"  src=\"about:blank\" onload=\"document.getElementById('shareframeloadmsg').innerHTML='';\" style=\"padding:0 0 0 0px;\" ></iframe>";


	data += "</div></center></div>";

	document.getElementById(divid).innerHTML = data ;	
	var scrolltop = parseInt(document.body.scrollTop) ;
	var toppos = parseInt(((screen.availHeight-iframeContainerHeight)/2)+scrolltop-80) ;
	document.getElementById(divid).childNodes[1].style.top = toppos+'px';
	document.getElementById(divid).childNodes[0].style.height = getDocHeight()+'px';
	document.getElementById(divid).style.display = "block" ;
	document.getElementById("shareThisLightBoxIframe").src=framesrc;
	if(form_name != undefined) {
		document.forms[form_name].action=framesrc;
		document.forms[form_name].submit();
	}
}

function closeShareIframe(dvnm){
		document.getElementById(dvnm).innerHTML = "" ;
	document.getElementById(dvnm).style.display = "none" ;
}

function getDocHeight() {
    var doc = document;
    return Math.max(
        Math.max(doc.body.scrollHeight, doc.documentElement.scrollHeight),
        Math.max(doc.body.offsetHeight, doc.documentElement.offsetHeight),
        Math.max(doc.body.clientHeight, doc.documentElement.clientHeight)
    );
}

