
var obj = "";
var url = "";

function fmenu(id){
        if(document.getElementById(id).style.display == "none"){
                document.getElementById(id).style.display="block" ;
        }
        else if(document.getElementById(id).style.display == "block"){
                document.getElementById(id).style.display="none" ;
        }

}

function topage(url){
        if(url!=""){
                parent.module.location.href=url;
        }
}


function search_menu(url){
	//alert(document.all('srhstr').value); exit ;
        if(url!=""){
                parent.help_subject.location.href=url+ "&srhstr=" +document.all('srhstr').value;
		document.all('srhstr').value = document.all('srhstr').value;
        }
}


function helptopage(url){
        if(url!=""){
                parent.help_subject.location.href=url;
        }
}


function goto_url(url){
        if(url!=""){
                location.href=url;
        }
}


function go_submit(obj){
	obj.submit();
}


function goto_delete(url,num,message){

	if(num == 0){
	        if(url!=""){
	                location.href=url;
	        }
		exit ;
	}
	if(!confirm(message)){
		exit ;
	}
	else{
	        if(url!=""){
	                location.href=url;
	        }
	}
}

function goto_reboot(obj,message){
	if(confirm(message)){
		return true ;
	}
	else{
		return false ;
	}
}


var field = "";
function setFocus(obj,field) {
  obj.field.focus();
}

// Andrew Plus
function searchData($message) {
        var error1 = 0 ;

        if (error1 == 0 && document.search_form.search.value == "") {
                error1 = 1 ;
                alert($message) ;
                document.search_form.search.focus() ;
        }

        if (error1 == 0)        return true ;
        else                    return false ;
}

