ie=navigator.appName.indexOf('Internet Explorer')!=-1;
function ge(name){
	return document.getElementById(name);
}
wind=false;
tmint=false;
doctitle='';
function winopen(img, w,h,nam){
	wn=window.open(img, 'imag','toolbar=no,status=no,left=50,top=50,scrollbars=no,width='+w+',height='+h+'');
	if(nam!='undefined'){
		wind=wn;
		tmint=setInterval('prep()',50);
		doctitle=nam;
	}
	return false;
}
function prep(){
	clearInterval(tmint);
	schk();

}
turn=0;
function schk(){
	clearInterval(tmint);
	if(wind && turn<10){
		if(wn.window.document.body)
		{
			if(parseInt(wn.window.document.body.style.margin)!=0){
				tmint=setInterval('schk()',1000);
				wn.window.document.title=doctitle;
				wn.window.document.body.style.margin='0px';
				turn++;
			}
			else{
				wind=false;
				doctitle='';
				turn=0;
			}
		}
		else{
			tmint=setInterval('schk()',1000);
			turn++;
		}
	}
	return false;
}
function check_num_simp(obj)
{
	e=0;
	if(obj.value!='' && obj.value!='0'){
		if((obj.value/obj.value)!=1 || Math.round(obj.value)!=obj.value){
			return false;
		}
	}
	return true;
}
active=-1;
var cont, sel;
function actpane(id){
	if(active!=-1){
		cont.style.display='none';
		sel.style.backgroundColor='#FFFFFF';
	}

	cont=ge('content'+id);
	sel=ge('pt'+id);
	cont.style.display='';
	sel.style.backgroundColor='#DDEEFF';
	active=1;
	return false;
}
