    function submitFormName(frmtoSubmit){
        for(var i=0;i<document.forms.length;i++){
            if(document.forms[i].id==frmtoSubmit){
                document.forms[i].submit();
            }
        }
    }
    function submitForm(frmtoSubmit){
        if(frmtoSubmit){
            frmtoSubmit.submit();
        }
    }
    function performsearch(){
        for(var i=0;i<document.forms.length;i++){
            if(document.forms[i].id=='frmmainsearch'){
                document.forms[i].submit();
            }
        }
    }
    function refreshpage(frmtosubmit,type){
        //myform = document.forms[frmtosubmit];
         for(var i=0;i<document.forms.length;i++){
            if(document.forms[i].id==frmtosubmit){
                    myform = document.forms[i];
            }
        }
        mybtn = document.getElementById("hdsecurelogin");
        if(mybtn){
            mybtn.value=type;
        }
        if(myform){
            myform.submit();
        }
    }

	function SubmitEnter(e,frmtosubmit,functiontocall){
		var keycode;
		if (window.event) keycode = window.event.keyCode;
		else if (e) keycode = e.which;
		else return true;

		if (keycode == 13)
		{
            if(frmtosubmit){
                eval(functiontocall);
            } 
		   return false;
		}
		else
		{
			return true;
		}
    }	
    
    

    function msgConfirm(message){
		if (confirm (message))
			return true;
		else
			return false;
    }
    
    function refreshnews(inputelement,url){
        if(inputelement){
            newsid=inputelement.options[inputelement.selectedIndex].value;
            document.location.href=url + "/newsarticleid/" +newsid + "/news/news.html";
        }            
    }
    