﻿// JScript File
//check if the crippled window exists
var crip = null;

function OpenPopupWindow(url,name,width,height,spec)
{
	CloseOldWindow();

	if (arguments.length == 4)
		spec = "toolbar=no,menubar=no,scrollbars=no,resizable=no";

	crip = window.open( url, name, spec + ',width=' + width + ',height=' + height );
	crip.focus();
}

function CloseOldWindow()		//close the window 
{
	if(crip != null) 
	{
		crip.close();
	}
}

function memoview(div_name,div_title,wd,ht,lt,tp){
    var ctrl = 'width=' + wd + 'px,height=' + ht + 'px,left=' + lt + 'px,top=' + tp + 'px,resize=0,scrolling=1';
    divwin=dhtmlwindow.open('divbox', 'div', div_name, div_title, ctrl,'recal')
}
