// JavaScript Document
var msgtop=30;// Set the top position of the div
var msgleft=350;// Set the left position of the div

/* The following three variables are for setting the properties of your table contained within the div. */
var tborder="0";
var cspace="0";
var cpad="0";
var tabheight=100 ;// Set the height of table
var tabwidth=300; // Set the width of table
var td1height=25;
var td2height=100;
var boxt="";

function DoFormbox(msgtext,pid,cid,sid)
{
if(document.getElementById('desc').value=='')
{
theString="<table width='"+tabwidth+"'  border="+tborder+" cellspacing="+cspace+" cellpadding="+cpad+"><tr><td height='"+td1height+"' class='td1style' align='left'>&nbsp;&nbsp;<b>http://"+document.domain+" Says: </b></td><td class='td1style' align=right><img oncontextmenu='return false;' src='images/close.JPG' border=0 onclick='hidebox()'></td></tr><tr><td colspan=2  height='"+td2height+"' class='td2style'><table cellspacing=2 cellpadding=2 align=center border=0 width='100%'><tr><td width='15%' align=center><img oncontextmenu='return false;' src='images/que3.gif' border=0></td><td align=left style='font-size:12px;'>";
theString+=""+msgtext+"</td></tr><tr><td colspan=2 align='center' ><input type=button name=btn1 value='Yes'  ";

yes_str="onclick=\"Domsg('Yes',"+pid+","+cid+",'"+sid+"');\"";

theString+=""+yes_str+" >&nbsp &nbsp<input type=button name=btn2 value='No' ";

no_str="onclick=\"Domsg('No',"+pid+","+cid+",'"+sid+"');\"";

theString+=""+no_str+" ></td></tr></table></td></tr></table>";
//alert(theString);
	if (document.layers) // Netscape 4.0+
	{
		
	document.formbox.document.write(theString);
	document.formbox.document.close();
	document.formbox.left=msgleft;
	document.formbox.top=msgtop+40;
	document.formbox.visibility="show";
	}
	else
	{
	
	if(document.getElementById) // Internet Explorer 5.0+ and Netscape 6.0+
	{
	elm=document.getElementById("formbox");
	
	elm.innerHTML=theString;
	var browser_type=navigator.appName;
	
	if(browser_type=='Microsoft Internet Explorer')
	elm.style.position='fixed';
	else
	elm.style.position='absolute';
	
	elm.style.top=msgtop;
	elm.style.left=msgleft;
	elm.style.visibility = "visible";
	}
	}
}
else
{
		var ntval=document.form1.desc.value;
		document.form1.on0.value=ntval;
	ajaxPage(pid,cid,sid);
}
}

// This function is for hiding the div
function hidebox()
{
if (document.layers) // Netscape 4.0+
{
document.formbox.visibility="hidden";
}
if(document.getElementById) // Netscape 6.0+ and Internet Explorer 5.0+
{
elm.style.visibility="hidden";
}
}