function openExamples(html,text) {
	if(document.cookie.indexOf('ci_session')==-1)window.location.replace(base_url + 'main_page/');
	var effect = new PopupEffect(html, {className: "popup_effect1"});
	Dialog.confirm(text,{className:"alphacube", width: 400, height:null, showEffect:effect.show.bind(effect), hideEffect:effect.hide.bind(effect)})
}
function openExamples(text,w,h) {
	if(document.cookie.indexOf('ci_session')==-1)window.location.replace(base_url + 'main_page/');
  Dialog.alert(text, 
               {windowParameters: {className: "alphacube", width:w, height:h}, okLabel: "close", 
                ok:function(win) {debug("validate alert panel"); return true;}, cancel:function(win) {debug("validate cancel panel"); return true;}});
}
function open_tip(name){
	//alert(base_url+'tool_tip/objective/');
	if(document.cookie.indexOf('ci_session')==-1)window.location.replace(base_url + 'main_page/');
Dialog.alert({url: base_url+'tool_tip/'+name+'/', options: {method: 'get'}}, {className: "zzz", width:540, okLabel: "none",height:211,width:711});

  /*Dialog.alert("231", 
               {windowParameters: {className: "alphacube", width:300, height:300}, okLabel: "close", 
                ok:function(win) {debug("validate alert panel"); return true;}, cancel:function(win) {debug("validate cancel panel"); return true;}});
*/

}
base_url="";
base_url_="";

function show_f1(a){
	//alert(a);
	//window.open(a);{url: a, options: {method: 'get'}}
	Dialog.alert({url: a, options: {method: 'POST'}}, {className: "zzz", width:540, okLabel: "none",height:211,width:711});
}
function show_f2(a){
	Dialog.alert({url: a.href, options: {method: 'get'}}, {className: "zzz", width:540, okLabel: "none",height:211,width:711});
}
function show_f3(a){
	Dialog.alert({url: a.href, options: {method: 'get'}}, {className: "zzz", width:540, okLabel: "none",height:211,width:711});
}



function show_q_a(){
	Dialog.alert({url: base_url+'tool_tip/'+name+'/', options: {method: 'get'}}, {className: "zzz", width:540, okLabel: "none",height:211,width:711});
}
