function vShowDialog(sHref, Title, dialogHeight, dialogWidth, top, left)
{
   var Result;

   Title = new Date();
   Title = Title.getHours()+Title.getMinutes()+Title.getSeconds();
   if (dialogHeight==null) dialogHeight = "300";
   if (dialogWidth ==null) dialogWidth  = "450";
   if (top==null) top = (window.screen.height-dialogHeight)/2;
   if (left ==null) left = (window.screen.width-dialogWidth)/2;
   Result = window.open(sHref, Title, "height=" + dialogHeight + ", width=" + dialogWidth + ", scrollbars=1, status=0, toolbar=0, menubar=0, resizable=1, location=0, left=" + left + ", top=" + top, false);
   return(Result);
}

function vShowDialogUnResize(sHref, Title, dialogHeight, dialogWidth, top, left) {
    var Result;

    Title = new Date();
    Title = Title.getHours() + Title.getMinutes() + Title.getSeconds();
    if (dialogHeight == null) dialogHeight = "300";
    if (dialogWidth == null) dialogWidth = "450";
    if (top == null) top = (window.screen.height - dialogHeight) / 2;
    if (left == null) left = (window.screen.width - dialogWidth) / 2;
    Result = window.open(sHref, Title, "height=" + dialogHeight + ", width=" + dialogWidth + ", scrollbars=0, status=0, toolbar=0, menubar=0, resizable=0, location=0, left=" + left + ", top=" + top, false);
    return (Result);
}

function InsertDialog(sHref, Title, dialogHeight, dialogWidth, top, left)
{
   if (dialogHeight==null) dialogHeight = "300";
   if (dialogWidth ==null) dialogWidth  = "450";
   if (top==null) top = (window.screen.height-dialogHeight)/2;
   if (left ==null) left = (window.screen.width-dialogWidth)/2;
   window.open(sHref, Title, "height=" + dialogHeight + ", width=" + dialogWidth + ", scrollbars=1, status=0, toolbar=0, menubar=0, resizable=1, location=0, left=" + left + ", top=" + top, false);
}

function ThinDialog(url,Title,H,W)
{
   openIT(url,Title,W,H);
}

function openIT(url,Title,W,H) {
	theURL = url;
	wname = "Dialog";
        Title = Title ? Title : " Dialog ";
	W = W ? W : 450;
	H = H ? H : 300;
	windowCERRARa 		= "/img/close_a.gif";
	windowCERRARd 		= "/img/close_d.gif";
	windowCERRARo 		= "/img/close_o.gif";
	windowNONEgrf 		= "/img/none.gif";
	windowCLOCK		= "/img/clock.gif";
	windowREALtit		= Title;
	windowTIT 	    	= "<div style=\"font:8pt verdana;\">&nbsp;" + Title + "</div>";
	windowBORDERCOLOR   	= "#F5F5F5";
	windowBORDERCOLORsel	= "#FFFFFF";
	windowTITBGCOLOR    	= "#CCCCCC";
	windowTITBGCOLORsel 	= "#DDDDDD";
	openchromeless(theURL, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowNONEgrf, windowCLOCK, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel)
}
