// JavaScript Document

function openpopup(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
toolbar_str = toolbar ? 'yes' : 'no';
menubar_str = menubar ? 'yes' : 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height= '+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

function popupmodal(url,w,h,s,rl)// url , width, height, scroll_bar, reload page 
{		
	var height = 40;
	var width = 70;
	var left = (screen.availWidth - width)/2;
	var top = (screen.availHeight - height)/2;
	if (window.showModalDialog)
	{
		var dialogArguments = new Object();
		var _RDC = window.showModalDialog(url, dialogArguments, "dialogWidth="+w+"px;dialogHeight="+h+"px;scroll="+s+";status=no;");
		if (rl == 1) JavaScript:location.reload(true);
	}		
	
	return false;
}