function doPopUp(strict,page,w,h,sc,rs){
strict = document.all?strict:0;
if(strict){
	return window.showModalDialog(page,null,"dialogHeight:"+h+"px;dialogWidth:"+w+"px;status:no;resizable:"+rs+";scroll:"+sc+";help:no;center:yes")
}else{
	var cW = window.open(page,'OPBYMY'+w+'_'+h,"height="+h+",width="+w+",left=200,top=150,status=no,toolbar=no,menubar=no,location=no,resizable="+rs+",scrollbars="+sc+",directories=no,titlebar=no");
	cW.window.focus();}
}
function ShowHide(Obj){//ver 2.01+
  if(Obj.style.display == "none"){
    Obj.style.display = "";
	Obj.state="EXPAND";
	}else{
	Obj.style.display = "none";
	Obj.state= "COLLAPSE";
	}
}
function selectStart()
 {
	window.event.cancelBubble = true;
	window.event.returnValue = false;
	return false;
 }
 function openSidebar(oc, page){
	if(oc){
		_SIDE.style.display = '';
		_SIDE_C.innerHTML = '<iframe src="'+page+'" width="230" height="100%" frameborder="0" style="border:0px solid #CCCCCC;"></iframe>';
	}else{
		_SIDE.style.display = 'none';
		_SIDE_C.innerHTML = '';
	}
}
function nPrint(){
	ShowHide(_PRNHDR);
	if(_PRNHDR.style.display==''){
		_PRNNOTES.focus();
		_PRNNOTES.value = 'Attention: ';
	}
}
function curFormat(obj){
	num = obj.value.replace(/\D/g,'');
	onum = '';
	for(i=0; i<num.length; i++){
		onum+= num.charAt(i) + ((i%3==(num.length-1)%3 && i!=num.length-1)?',':'');
	}
	obj.value = onum;
}


