function getdate(des, title,height,width) {
  var dwin;
  dwin=window.open(des, title, "scrollbars=yes,width=" + width + ",height=" + height);
  if(window.focus){
	dwin.window.focus(); 
  }
}  

function highlight(button,color) {
  if (document.all)
    document.all[button].bgColor = color;
  else if (document.getElementById)
    document.getElementById(button).bgColor = color;
  else if (document.layers)
    document[button].bgColor = color;
}

function OpenWindow (Url,Title, Width, Height, Toolbar, Location, Directories, Status, Menubar, window_name) {
  	var newWindow = null;
	var win_opt= "toolbar="+Toolbar+",location="+Location+",directories="+Directories+",status="+Status+",menubar="+Menubar+",";
	win_opt += "scrollbars=1,resizable=1,copyhistory=0,";
	win_opt += "width=" + Width + ",height=" + Height;
	newWindow = window.open('',Title,win_opt);
	if (newWindow && newWindow.open && ! newWindow.closed ) {
		newWindow.name=window_name;
		if (newWindow.opener == null) {
			newWindow.opener = self;
		}
		newWindow.location.href = Url;
		if (newWindow.focus) {
			 newWindow.focus();
		}
	}
}

function confirmSubmit(Title) {
        var agree=confirm(Title);
        if (agree) {
                return true ;
        } else {
                return false ;
        }
} 

