function openwin(myURL, myWIDTH, myHEIGHT)
{
   window.open(myURL, 'mywin', 'width=' + myWIDTH + ',height=' + myHEIGHT + ',directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no')
}

function goto(myURL)
{
   window.opener.location.href = myURL;
   window.close();
}

function forgetPwd(url) {
            var dx = 440;
            var dy = 350;
            var ah = screen.availHeight - 30;
            var aw = screen.availWidth  - 10;
            var cx = (aw - dx) / 2;
            var cy = (ah - dy) / 2;
            forgetDialog = window.open(url + '/253', 'forgetDialog',
                                   'status=1,resizable=0,scrollbars=1,toolbars=0,width='+dx+',height='+dy+',top='+cy+',left='+cx+',screenX='+cx+',screenY='+cy+'');
            if (forgetDialog.opener == null) forgetDialog.opener = self;
}

function reSize()
{
    if (typeof(ifrm) != "undefined") {
	//try{
        if (typeof(ifrm) != null) { 
	var oBody	= ifrm.document.body;
	var oFrame	= document.all("ifrm");

	oFrame.style.height = oBody.scrollHeight + (oBody.offsetHeight - oBody.clientHeight) + 50;
        //alert(" oFrame.style.height = " + oFrame.style.height); 
	}
        //}
	//An error is raised if the IFrame domain != its container's domain
	//catch(e)
	//{
	//window.status =	'Error: ' + e.number + '; ' + e.description;
	//}
    }
}

function reset(form) {
  form.reset();
}
