/**
 * utils.js
 *
 *
 * Created: Thu Jun  16 11:10:48 2003
 *
 * @author <a href="mailto:yumiko.mizoguchi@toshiba.co.jp">Yumiko Mizoguchi</a>
 * @version 1.0
 */


// jump to new URL
function jump(url){
    location.href=url;
}

// reload URL
function reload(){
  location.reload();
}

// confirm window
function deleteConfirm(message){
  input=confirm(message);
  if(input == true){
    word = "./deleteRegistration.do?action=Delete&entity=" +
    document.forms["registrationForm"].elements["entity"].value +
    "&identifier=" +
    document.forms["registrationForm"].elements["identifier"].value +
    "&action=" + 
    document.forms["registrationForm"].elements["action"].value; 
    //alert(word);
    location.href=word;  
  } 
}

// test function
function Display(){
   word = "test";
   alert(word);
}

// open tree dialog
function openTreeDialog(){
   url = "diclist.do";
   //url = "./loadtreewin.do?identifier=" + id + "&winname=" + name;
   win = window.open("", "refclass","scrollbars=yes,resizable=yes,width=480,height=380");
   win.location.href=url;
}

function loadConditionForm(){
   url = "./loadMultiCondForm.do?identifier=" +
   document.conditionForm.classid.value + "&prefname=" +
   document.conditionForm.prefname.value + "&identifier2=" +
   document.conditionForm.classid2.value + "&prefname2=" +
   document.conditionForm.prefname2.value;   

   location.href=url;

}

function doAction(actionName){
  with(document.forms[0]){
      action = '<html:rewrite page="actionName"/>';
      submit();      
  }
  return false;
}

function showHelp(lang){
	clang = lang.toUpperCase();
	url = "help/Help_EN.htm";
	warning = "Sorry, under construction";
	if(clang == "JA"){
		url = "help/Help_" + clang + ".htm";
	} 
	win = window.open(url, "", "menubar,scrollbars,resizable, width=600, height=600");
}


