function confirmation(message, url){
	if(confirm(message)) location.href = url;
}

function popUp(URL) {
var width=860;
var height=640;
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width="+width+",height="+height+",left = "+(screen.width-width)/2+",top = "+(screen.height-height)/2+"');");
}

function MM_jumpMenu(url,targ,selObj,restore){ //v3.0
  eval(targ+".location='"+url+selObj.options[selObj.selectedIndex].value+".html'");
  if (restore) selObj.selectedIndex=0;
}

function putText(id, text) {
	area = document.getElementById(id);
	
	if (document.selection) {
	area.focus();
	selection = document.selection.createRange();
	selection.text = text;
	} else if ( area.selectionStart || area.selectionStart == '0' ) {
	var begin = area.selectionStart;
	var end = area.selectionEnd;
	area.value = area.value.substring(0, begin) + text + area.value.substring(end, area.value.length);
	} else {
	area.value += text;
	}
	
	area.focus();
}

