var init;

function select(obj){
//	var input = top.frames;
//	input = input.Ftext;
//	input = input.selectScreenObj;

	if(obj.selectedIndex!=-1){
		var input = top.myFtext.selectScreenObj;
		if(input) input.value = obj.value+','+obj.options[obj.selectedIndex].text;
	}
}
function synchronize(){
	var input = top.myFtext.selectScreenObj;
	var id = input.value;
	var pos = id.indexOf(',');
	if(pos>0){
		id = id.substr(0,pos);
	}
	var fnd = false;
	var sel = document.getElementById('test');
	if(id.length>1){
		for(i=0;i<sel.options.length;i++){
			if(sel.options[i].value==id){
//				input.value = sel.options[i].value+','+sel.options[i].text;
				sel.selectedIndex = i;
				fnd = true;
				break;
			}
		}
	}
	if(!fnd) sel.selectedIndex = -1;
}

function PrintHTML(myframe){
	//if(top.myFzoek.ExportAllowed()){
		//var win = (myframe == undefined) ? top.myFtext : myframe;
		var win = myframe;
		var loc = unescape(win.document.location.href);
		var isPdf = loc.indexOf('.pdf') != -1;
		//var isData = loc.indexOf('data/'+top.gAppCode) != -1;
		//var isSearch = loc.indexOf('result.htm') != -1;
		//var tmp0 = loc.indexOf('help.htm') != -1;
		// alert(loc+'\n'+isPdf+'\n'+isData); // debug //
		win.focus();
		//if(isData || tmp0 || isSearch){
			if(!isPdf){
				//if(!IsInSchil()){
				//	win.print();
				//}else{
					if(external.HasTemplate)	external.print(win.document);
					else 				win.print();
				//}
			//}else{
				//alert(top.msg_01);
			}
		//}else{
			//alert(top.msg_03);
		//}
	//}
}

function Init(){
	if(top.init){
		init = true;
	}
}
