function navigate(url){
        //alert(document.frmpage.rOK.value);
        //alert("test me");
        document.frmpage.action = url; 
        document.frmpage.submit();
        document.frmpage.target= '_self';
        
    };
  
  function navigate1(url){
       //window.open("","_blank",""); 
       document.frmpage.action = url;
       //document.frmpage.target ="_blank";
       //var a = window.setTimeout("document.frmpage.submit();",500); 
       
        document.frmpage.submit();	
        
    };

  
    function submitAll(idForm1, idForm2, url){
        var objForm1 = document.getElementById(idForm1);
        var objForm2 = document.getElementById(idForm2);
      
        copyForm (objForm2,objForm1);
        
        if(url != "") objForm1.action = url;
        
        objForm1.submit();
    }
    function copyForm(objSourceForm, objTargetForm) {
        var num = objSourceForm.elements.length;
        var objSource;
        for (var i = num -1 ; i >= 0; i--) {
            objSource = objSourceForm.elements[i];
            if ((objSource.type != "button")&&(objSource.type != "submit")) {
                var newElement = objSource.cloneNode(true);
                objTargetForm.insertBefore(newElement, null);
                //alert(newElement.id + ' = ' + newElement.value);
            }
        }
    }
 